Exclude fwupdmgr on hikari
As this wouldn't work. It is a Mac.
This commit is contained in:
parent
e26d6b63af
commit
496f3687b3
|
@ -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 { })
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue