diff --git a/internal/nix/nix.go b/internal/nix/nix.go index 8c7a175..99db71d 100644 --- a/internal/nix/nix.go +++ b/internal/nix/nix.go @@ -46,7 +46,7 @@ func getExpectedMachineId(path, hostname string) (machineId string, err error) { } func runNixCommand(args []string, stdout, stderr io.Writer) (err error) { - commonArgs := []string{"--extra-experimental-features", "nix-command", "--extra-experimental-features", "flakes"} + commonArgs := []string{"--extra-experimental-features", "nix-command", "--extra-experimental-features", "flakes", "--accept-flake-config"} args = append(commonArgs, args...) cmdStr := fmt.Sprintf("nix %s", strings.Join(args, " ")) logrus.Infof("Running '%s'", cmdStr)