summary refs log tree commit diff
path: root/nixos/modules/tasks/network-interfaces.nix
diff options
context:
space:
mode:
authorSymphorien Gibol <symphorien+git@xlumurb.eu>2018-11-08 11:59:03 +0100
committernix-review <nix-review@example.com>2019-02-22 20:11:27 +0100
commita915b33315946b9e7d164d57812ee16172ad65df (patch)
treec87f6d3bb162737257923a6d917f72f6db77bb45 /nixos/modules/tasks/network-interfaces.nix
parent2a81eceeba6d9b0499c0a9dc569921765321cdd0 (diff)
downloadnixpkgs-a915b33315946b9e7d164d57812ee16172ad65df.tar
nixpkgs-a915b33315946b9e7d164d57812ee16172ad65df.tar.gz
nixpkgs-a915b33315946b9e7d164d57812ee16172ad65df.tar.bz2
nixpkgs-a915b33315946b9e7d164d57812ee16172ad65df.tar.lz
nixpkgs-a915b33315946b9e7d164d57812ee16172ad65df.tar.xz
nixpkgs-a915b33315946b9e7d164d57812ee16172ad65df.tar.zst
nixpkgs-a915b33315946b9e7d164d57812ee16172ad65df.zip
nixos: add preferLocalBuild=true; on derivations for config files
Diffstat (limited to 'nixos/modules/tasks/network-interfaces.nix')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index 815523093dd..f9b0eb330bf 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -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