-
-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
Description
If your flake has updated the flake config and we use nh os build
we get output from nix build saying
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
if you were to instead use nix build
within the directory first, you would get prompted to accept the options (example)
do you want to allow configuration setting 'extra-substituters' to be set to 'https://cache.nixos.org https://nix-community.cachix.org https://toyvo.cachix.org https://nixcache.diekvoss.net' (y/N)? y
do you want to permanently mark this value as trusted (y/N)? y
do you want to allow configuration setting 'extra-trusted-public-keys' to be set to 'cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= toyvo.cachix.org-1:s++CG1te6YaS9mjICre0Ybbya2o/S9fZIyDNGiD4UXs= nixcache.diekvoss.net:31yGqcL45nEZ73gLt569UoAopxWOfC5bactGqU9C9mI=' (y/N)? y
do you want to permanently mark this value as trusted (y/N)? y
I'm guessing that nix
detects if its being run interactively to prompt vs warn, if we can pass through that state that would be nice.