nixos: add preferLocalBuild=true; on derivations for config files

This commit is contained in:
Symphorien Gibol
2019-02-22 20:11:27 +01:00
committed by nix-review
parent 2a81eceeba
commit a915b33315
56 changed files with 99 additions and 60 deletions
+1 -1
View File
@@ -995,7 +995,7 @@ in
'';
environment.etc."hostid" = mkIf (cfg.hostId != null)
{ source = pkgs.runCommand "gen-hostid" {} ''
{ source = pkgs.runCommand "gen-hostid" { preferLocalBuild = true; } ''
hi="${cfg.hostId}"
${if pkgs.stdenv.isBigEndian then ''
echo -ne "\x''${hi:0:2}\x''${hi:2:2}\x''${hi:4:2}\x''${hi:6:2}" > $out