Services: fix autoupgrade typo
This commit is contained in:
parent
0a6c2df811
commit
8791642454
|
@ -38,7 +38,7 @@ while [[ $# -gt 0 ]]; do
|
|||
shift
|
||||
shift
|
||||
;;
|
||||
--no-update|-n)
|
||||
--no-update|--no-upgrade|-n)
|
||||
update=false
|
||||
shift
|
||||
shift
|
||||
|
|
|
@ -15,6 +15,7 @@ in
|
|||
extraFlags = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Extra flags to pass to nixos-rebuild.";
|
||||
default = "";
|
||||
};
|
||||
onCalendar = lib.mkOption {
|
||||
default = "daily";
|
||||
|
@ -57,10 +58,10 @@ in
|
|||
unitConfig.RequiresMountsFor = cfg.configDir;
|
||||
script = lib.strings.concatStrings [
|
||||
"/run/current-system/sw/bin/nixos-upgrade-script --operation switch "
|
||||
(lib.mkIf (cfg.configDir) "--flake ${cfg.configDir} ").content
|
||||
(lib.mkIf (cfg.user) "--user ${cfg.user} ").content
|
||||
(lib.mkIf (cfg.configDir != "") "--flake ${cfg.configDir} ").content
|
||||
(lib.mkIf (cfg.user != "") "--user ${cfg.user} ").content
|
||||
(lib.mkIf (!cfg.pushUpdates) "--no-update ").content
|
||||
(lib.mkIf (cfg.extraFlags) cfg.extraFlags).content
|
||||
(lib.mkIf (cfg.extraFlags != "") cfg.extraFlags).content
|
||||
];
|
||||
};
|
||||
timers."nixos-upgrade" = {
|
||||
|
|
Loading…
Reference in a new issue