From 94ab72d1f9259d2348bb57c327010e98cdd3b25b Mon Sep 17 00:00:00 2001 From: Brian Ketelsen Date: Fri, 14 Apr 2023 09:02:06 -0400 Subject: [PATCH] fix: flake lock error with home-manager (#142) --- internal/flake/flake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/flake/flake.go b/internal/flake/flake.go index c1d1e18c..1e6170b7 100644 --- a/internal/flake/flake.go +++ b/internal/flake/flake.go @@ -445,7 +445,7 @@ func (f *Flake) Apply() error { if err != nil { return err } - applyCmdLine := []string{"run", "--impure", "home-manager/master", "--", "-b", "bak", "switch", "--flake", ".#" + user + "@" + host} + applyCmdLine := []string{"run", "--no-write-lock-file", "--impure", "home-manager/master", "--", "-b", "bak", "switch", "--flake", ".#" + user + "@" + host} out, err := f.runNix(nixbin, applyCmdLine) if err != nil { if bytes.Contains(out, []byte("priority")) {