Add fwupdmgr commands

This commit is contained in:
Jakob Lechner 2022-06-08 07:54:13 +00:00
parent 07360b9b4e
commit c1db7cf40c
No known key found for this signature in database
GPG key ID: 996082EFB5906C10

View file

@ -1,11 +1,14 @@
boot: boot:
nixos-rebuild boot --flake . --use-remote-sudo nixos-rebuild boot --flake . --use-remote-sudo
which fwupdmgr >/dev/null 2>&1 && fwupdmgr update || true
switch: switch:
nixos-rebuild switch --flake . --use-remote-sudo nixos-rebuild switch --flake . --use-remote-sudo
which fwupdmgr >/dev/null 2>&1 && fwupdmgr update || true
build: build:
nixos-rebuild build --flake . nixos-rebuild build --flake .
update: update:
nix flake update --commit-lock-file nix flake update --commit-lock-file
which fwupdmgr >/dev/null 2>&1 && fwupdmgr refresh || true