add alias for raspi firmware upgrades
This commit is contained in:
parent
61d3bd3001
commit
3dff1cf402
|
@ -21,4 +21,15 @@
|
|||
documentation.enable = false;
|
||||
documentation.nixos.enable = false;
|
||||
programs.command-not-found.enable = false;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
raspberrypi-eeprom
|
||||
];
|
||||
|
||||
environment.shellAliases = {
|
||||
raspi-firmware-update = ''
|
||||
sudo mount /dev/disk/by-label/FIRMWARE /mnt && \
|
||||
BOOTFS=/mnt FIRMWARE_RELEASE_STATUS=stable sudo -E rpi-eeprom-update -d -a
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue