summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-11-25 08:17:30 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2020-11-25 08:34:04 +0100
commit5790bb073f8cfa5de29ce65ae4c6d15b21cccf7e (patch)
tree96935b8816ca84c829e227ebb674c67954142342
parent6cea12ccff6e279f0bc1f91aa6a898d642e03320 (diff)
nixos auto-upgrade: remove flag when flake
The `--no-build-output` flag that is added by default is only valid for the old cli, which is not used when flakes are used. Follow-up to c9daa81eff922d9f77d136cfcff0ea05d40024e0.
-rw-r--r--nixos/modules/tasks/auto-upgrade.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/modules/tasks/auto-upgrade.nix b/nixos/modules/tasks/auto-upgrade.nix
index 69385e5f2fe0..b19b688a1fb8 100644
--- a/nixos/modules/tasks/auto-upgrade.nix
+++ b/nixos/modules/tasks/auto-upgrade.nix
@@ -109,9 +109,8 @@ in {
'';
}];
- system.autoUpgrade.flags = [ "--no-build-output" ]
- ++ (if cfg.flake == null then
- (if cfg.channel == null then
+ system.autoUpgrade.flags = (if cfg.flake == null then
+ [ "--no-build-output" ] ++ (if cfg.channel == null then
[ "--upgrade" ]
else [
"-I"