nixos: add preferLocalBuild=true; on derivations for config files
This commit is contained in:
committed by
nix-review
parent
2a81eceeba
commit
a915b33315
@@ -8,6 +8,7 @@ let
|
||||
if (cfg.configFile == null) then
|
||||
(pkgs.runCommand "config.toml" {
|
||||
buildInputs = [ pkgs.remarshal ];
|
||||
preferLocalBuild = true;
|
||||
} ''
|
||||
remarshal -if json -of toml \
|
||||
< ${pkgs.writeText "config.json" (builtins.toJSON cfg.configOptions)} \
|
||||
|
||||
Reference in New Issue
Block a user