diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-26 18:17:12 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-26 18:19:45 +0100 |
commit | 2b1f21249445991940c9d3ebbc54ce41b1eaf9c0 (patch) | |
tree | 3c7f98ee825b69af81ba7215b6ef2489375e37b3 /nixos/modules/services/networking/dhcpcd.nix | |
parent | da093461a2ff09d6ea1071ff886866a1f85480c2 (diff) |
Disable various services when running inside a container
Diffstat (limited to 'nixos/modules/services/networking/dhcpcd.nix')
-rw-r--r-- | nixos/modules/services/networking/dhcpcd.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index 07b5606eacaa..ea263b3c89de 100644 --- a/nixos/modules/services/networking/dhcpcd.nix +++ b/nixos/modules/services/networking/dhcpcd.nix @@ -114,6 +114,8 @@ in path = [ dhcpcd pkgs.nettools pkgs.openresolv ]; + unitConfig.ConditionCapability = "CAP_NET_ADMIN"; + serviceConfig = { Type = "forking"; PIDFile = "/run/dhcpcd.pid"; |