From 710c071e86bd546166e4387d732576dbf1e703f8 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:00:13 +1000 Subject: [PATCH] add accept-flake-config to nix commonArgs > warning: ignoring untrusted flake configuration setting 'extra-substituters'. > Pass '--accept-flake-config' to trust it > warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'. > Pass '--accept-flake-config' to trust it --- internal/nix/nix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)