nixos/networking.nix: only setup rpc on glibc
(cherry picked from commit 4177dc3f774523fea7d181601d7c3301fda13790) and (cherry picked from commit a2f0c95baf57fb735dd47b5db73274f7e75df7c9)
This commit is contained in:
parent
2603e3a5e9
commit
8cc028fd34
|
@ -228,9 +228,6 @@ in
|
||||||
# /etc/protocols: IP protocol numbers.
|
# /etc/protocols: IP protocol numbers.
|
||||||
"protocols".source = pkgs.iana-etc + "/etc/protocols";
|
"protocols".source = pkgs.iana-etc + "/etc/protocols";
|
||||||
|
|
||||||
# /etc/rpc: RPC program numbers.
|
|
||||||
"rpc".source = pkgs.glibc.out + "/etc/rpc";
|
|
||||||
|
|
||||||
# /etc/hosts: Hostname-to-IP mappings.
|
# /etc/hosts: Hostname-to-IP mappings.
|
||||||
"hosts".text = let
|
"hosts".text = let
|
||||||
oneToString = set: ip: ip + " " + concatStringsSep " " set.${ip};
|
oneToString = set: ip: ip + " " + concatStringsSep " " set.${ip};
|
||||||
|
@ -268,6 +265,9 @@ in
|
||||||
"resolv.conf".source = "${pkgs.systemd}/lib/systemd/resolv.conf";
|
"resolv.conf".source = "${pkgs.systemd}/lib/systemd/resolv.conf";
|
||||||
} // optionalAttrs (config.services.resolved.enable && dnsmasqResolve) {
|
} // optionalAttrs (config.services.resolved.enable && dnsmasqResolve) {
|
||||||
"dnsmasq-resolv.conf".source = "/run/systemd/resolve/resolv.conf";
|
"dnsmasq-resolv.conf".source = "/run/systemd/resolve/resolv.conf";
|
||||||
|
} // optionalAttrs (pkgs.stdenv.hostPlatform.libc == "glibc") {
|
||||||
|
# /etc/rpc: RPC program numbers.
|
||||||
|
"rpc".source = pkgs.glibc.out + "/etc/rpc";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.proxy.envVars =
|
networking.proxy.envVars =
|
||||||
|
|
Loading…
Reference in New Issue