Exclude fwupdmgr on hikari

As this wouldn't work. It is a Mac.
This commit is contained in:
Daniel Siepmann 2024-07-01 20:02:06 +02:00
parent e26d6b63af
commit 496f3687b3
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 8 additions and 5 deletions

View file

@ -14,7 +14,7 @@
dmenu
gnome.gnome-screenshot
libnotify # Provide notify-send command
(callPackage ./packages/custom/update-nixos-system { })
(callPackage ./packages/custom/update-nixos-system { inherit hostName; })
(callPackage ./packages/custom/watch-project-logs-warning { })
(callPackage ./packages/custom/watch-project-logs-notice { })

View file

@ -1,14 +1,17 @@
{
writeShellApplication
,hostName
}:
writeShellApplication {
name = "custom-update-operating-system";
text = ''
let
additions = if hostName == "hikari" then "" else ''
sudo fwupdmgr get-updates || true
fwupdmgr update -y
'';
in writeShellApplication {
name = "custom-update-operating-system";
text = additions + ''
sudo nixos-rebuild switch --upgrade-all
# shellcheck disable=SC2010