summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/networking/dhcpcd.nix
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2014-03-20 08:51:08 +0100
committerJaka Hudoklin <jakahudoklin@gmail.com>2014-03-24 23:59:50 +0100
commit70a4c7b1dfdb238d3729c3f71127538943a43afd (patch)
treef2607d1c3a2b8991ab451df9fd6ae9b0a38ce6d2 /nixos/modules/services/networking/dhcpcd.nix
parenta1a167bc8bfd40616d6ad465b5c44337c7fee657 (diff)
nixos: fix linux containers (systemd-nspawn, lxc, lxc-libvirt)
- Make dhcp work, use dhcpcd without udev in container - Make login shell work, patch getty to not wait for /dev/tty0 - Make ssh work, sshd/pam do not start session
Diffstat (limited to 'nixos/modules/services/networking/dhcpcd.nix')
-rw-r--r--nixos/modules/services/networking/dhcpcd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix
index d4ec96a18f6f..37f607b08151 100644
--- a/nixos/modules/services/networking/dhcpcd.nix
+++ b/nixos/modules/services/networking/dhcpcd.nix
@@ -4,7 +4,7 @@ with pkgs.lib;
let
- inherit (pkgs) dhcpcd;
+ dhcpcd = if !config.boot.isContainer then pkgs.dhcpcd else pkgs.dhcpcd_without_udev;
# Don't start dhcpcd on explicitly configured interfaces or on
# interfaces that are part of a bridge.