summary refs log tree commit diff
path: root/nixos/modules/services/networking/ssh
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/ssh
parenta1a167bc8bfd40616d6ad465b5c44337c7fee657 (diff)
downloadnixlib-70a4c7b1dfdb238d3729c3f71127538943a43afd.tar
nixlib-70a4c7b1dfdb238d3729c3f71127538943a43afd.tar.gz
nixlib-70a4c7b1dfdb238d3729c3f71127538943a43afd.tar.bz2
nixlib-70a4c7b1dfdb238d3729c3f71127538943a43afd.tar.lz
nixlib-70a4c7b1dfdb238d3729c3f71127538943a43afd.tar.xz
nixlib-70a4c7b1dfdb238d3729c3f71127538943a43afd.tar.zst
nixlib-70a4c7b1dfdb238d3729c3f71127538943a43afd.zip
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/ssh')
-rw-r--r--nixos/modules/services/networking/ssh/sshd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix
index 85b6ab1efecf..537fe0848eac 100644
--- a/nixos/modules/services/networking/ssh/sshd.nix
+++ b/nixos/modules/services/networking/ssh/sshd.nix
@@ -285,7 +285,7 @@ in
     networking.firewall.allowedTCPPorts = cfg.ports;
 
     security.pam.services.sshd =
-      { startSession = true;
+      { startSession = !config.boot.isContainer;
         showMotd = true;
         unixAuth = cfg.passwordAuthentication;
       };