summary refs log tree commit diff
path: root/nixos/modules/tasks/auto-upgrade.nix
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 /nixos/modules/tasks/auto-upgrade.nix
parent6cea12ccff6e279f0bc1f91aa6a898d642e03320 (diff)
downloadnixpkgs-5790bb073f8cfa5de29ce65ae4c6d15b21cccf7e.tar
nixpkgs-5790bb073f8cfa5de29ce65ae4c6d15b21cccf7e.tar.gz
nixpkgs-5790bb073f8cfa5de29ce65ae4c6d15b21cccf7e.tar.bz2
nixpkgs-5790bb073f8cfa5de29ce65ae4c6d15b21cccf7e.tar.lz
nixpkgs-5790bb073f8cfa5de29ce65ae4c6d15b21cccf7e.tar.xz
nixpkgs-5790bb073f8cfa5de29ce65ae4c6d15b21cccf7e.tar.zst
nixpkgs-5790bb073f8cfa5de29ce65ae4c6d15b21cccf7e.zip
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.
Diffstat (limited to 'nixos/modules/tasks/auto-upgrade.nix')
-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 69385e5f2fe..b19b688a1fb 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"