From d6ffb6f4938b24ead49d26ffdc81d8debd8bdd7f Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 8 Apr 2021 21:39:39 -0400 Subject: [PATCH] recreate lock file if using a local flake --- modules/flakes.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/flakes.nix b/modules/flakes.nix index cb990c7..e52c87f 100644 --- a/modules/flakes.nix +++ b/modules/flakes.nix @@ -20,6 +20,7 @@ in ''; system.autoUpgrade.flake = cfg.rebuildPath; + system.autoUpgrade.flags = [ (lib.optionalString (cfg.rebuildPath == "/etc/nixos") "--recreate-lock-file") ]; environment.systemPackages = map (x: (pkgs.writeShellScriptBin