about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-02-28 12:04:10 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2020-04-06 16:36:27 -0400
commit7cc40e15e46033924d9d141b3869a94d9d31a973 (patch)
treeae874c0e48d991f4f438b929767c347b5070590e /nixos/modules/config
parent8a5059e1cc717299b4e58459c70591e12db0fca2 (diff)
downloadnixlib-7cc40e15e46033924d9d141b3869a94d9d31a973.tar
nixlib-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.gz
nixlib-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.bz2
nixlib-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.lz
nixlib-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.xz
nixlib-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.zst
nixlib-7cc40e15e46033924d9d141b3869a94d9d31a973.zip
treewide/nixos: use stdenv.cc.libc instead of glibc when available
This prevents duplication in cross-compiled nixos machines. The
bootstrapped glibc differs from the natively compiled one, so we get
two glibc’s in the closure. To reduce closure size, just use
stdenv.cc.libc where available.
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/networking.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix
index dd36696b94d2..03944de82497 100644
--- a/nixos/modules/config/networking.nix
+++ b/nixos/modules/config/networking.nix
@@ -197,7 +197,7 @@ in
 
       } // optionalAttrs (pkgs.stdenv.hostPlatform.libc == "glibc") {
         # /etc/rpc: RPC program numbers.
-        rpc.source = pkgs.glibc.out + "/etc/rpc";
+        rpc.source = pkgs.stdenv.cc.libc.out + "/etc/rpc";
       };
 
       networking.proxy.envVars =