diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2018-11-08 11:59:03 +0100 |
---|---|---|
committer | nix-review <nix-review@example.com> | 2019-02-22 20:11:27 +0100 |
commit | a915b33315946b9e7d164d57812ee16172ad65df (patch) | |
tree | c87f6d3bb162737257923a6d917f72f6db77bb45 /nixos/modules/system/boot/stage-1.nix | |
parent | 2a81eceeba6d9b0499c0a9dc569921765321cdd0 (diff) | |
download | nixpkgs-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/system/boot/stage-1.nix')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index 5e27b24ac44..9984a97bbdd 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -196,9 +196,10 @@ let ''; # */ - udevRules = pkgs.runCommand "udev-rules" - { allowedReferences = [ extraUtils ]; } - '' + udevRules = pkgs.runCommand "udev-rules" { + allowedReferences = [ extraUtils ]; + preferLocalBuild = true; + } '' mkdir -p $out echo 'ENV{LD_LIBRARY_PATH}="${extraUtils}/lib"' > $out/00-env.rules @@ -298,9 +299,10 @@ let { object = pkgs.writeText "mdadm.conf" config.boot.initrd.mdadmConf; symlink = "/etc/mdadm.conf"; } - { object = pkgs.runCommand "initrd-kmod-blacklist-ubuntu" - { src = "${pkgs.kmod-blacklist-ubuntu}/modprobe.conf"; } - '' + { object = pkgs.runCommand "initrd-kmod-blacklist-ubuntu" { + src = "${pkgs.kmod-blacklist-ubuntu}/modprobe.conf"; + preferLocalBuild = true; + } '' target=$out ${pkgs.buildPackages.perl}/bin/perl -0pe 's/## file: iwlwifi.conf(.+?)##/##/s;' $src > $out ''; |