Skip to content

Commit

Permalink
nixos auto-upgrade: remove flag when flake
Browse files Browse the repository at this point in the history
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 c9daa81.

(cherry picked from commit 5790bb0)
  • Loading branch information
FRidh committed Dec 11, 2020
1 parent 23e7ed9 commit ca92da1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nixos/modules/tasks/auto-upgrade.nix
Expand Up @@ -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"
Expand Down

0 comments on commit ca92da1

Please sign in to comment.