From a60071039d9ba74b5711736974a36bdf349abc8e Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 5 Apr 2021 23:27:42 -0400 Subject: [PATCH] fix rebuild scripts for flakes --- modules/flakes.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/flakes.nix b/modules/flakes.nix index d938499..7085e33 100644 --- a/modules/flakes.nix +++ b/modules/flakes.nix @@ -28,9 +28,9 @@ in [ "switch" "switch" ] [ "build" "build" ] [ "boot" "boot" ] - [ "switch-upgrade" "switch" "--recreate-lock-file" "--refresh" ] - [ "build-upgrade" "build" "--recreate-lock-file" "--refresh" ] - [ "boot-upgrade" "boot" "--recreate-lock-file" "--refresh" ] + [ "switch-upgrade" "switch" "--refresh" (lib.optionalString (cfg.rebuildPath == "/etc/nixos") "--recreate-lock-file") ] + [ "build-upgrade" "build" "--refresh" (lib.optionalString (cfg.rebuildPath == "/etc/nixos") "--recreate-lock-file") ] + [ "boot-upgrade" "boot" "--refresh" (lib.optionalString (cfg.rebuildPath == "/etc/nixos") "--recreate-lock-file") ] ]; };