Merge pull request #104870 from FRidh/flake

nixos auto-upgrade: remove flag when flake
This commit is contained in:
Elis Hirwing 2020-11-25 09:18:51 +01:00 committed by GitHub
commit 54745a4f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"