mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/dhcpcd: fix when ipv6 is disabled (#362568)
This commit is contained in:
commit
9bdcd51ed6
1 changed files with 2 additions and 1 deletions
|
@ -249,7 +249,8 @@ in
|
|||
ExecReload = "${dhcpcd}/sbin/dhcpcd --rebind";
|
||||
Restart = "always";
|
||||
AmbientCapabilities = [ "CAP_NET_ADMIN" "CAP_NET_RAW" "CAP_NET_BIND_SERVICE" ];
|
||||
ReadWritePaths = [ "/proc/sys/net/ipv4" "/proc/sys/net/ipv6" ]
|
||||
ReadWritePaths = [ "/proc/sys/net/ipv4" ]
|
||||
++ lib.optional cfgN.enableIPv6 "/proc/sys/net/ipv6"
|
||||
++ lib.optionals useResolvConf ([ "/run/resolvconf" ] ++ config.networking.resolvconf.subscriberFiles);
|
||||
DeviceAllow = "";
|
||||
LockPersonality = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue