recreate lock file if using a local flake

This commit is contained in:
Sean Buckley 2021-04-08 21:39:39 -04:00
parent 59ae67549c
commit d6ffb6f493

View file

@ -20,6 +20,7 @@ in
''; '';
system.autoUpgrade.flake = cfg.rebuildPath; system.autoUpgrade.flake = cfg.rebuildPath;
system.autoUpgrade.flags = [ (lib.optionalString (cfg.rebuildPath == "/etc/nixos") "--recreate-lock-file") ];
environment.systemPackages = map environment.systemPackages = map
(x: (pkgs.writeShellScriptBin (x: (pkgs.writeShellScriptBin