Skip to content

Commit

Permalink
add accept-flake-config to nix commonArgs
Browse files Browse the repository at this point in the history
> 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
  • Loading branch information
zowoq committed Apr 2, 2024
1 parent b572ac3 commit 710c071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/nix/nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 710c071

Please sign in to comment.