diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-20 12:44:06 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-20 12:54:47 -0400 |
commit | 16a6f5612d065d5a1252debf8f46b9befe6a2d89 (patch) | |
tree | 6cb274eeddd6392eb80dd52524ec59daec290255 /config/container.nix | |
parent | 1140534669504850ad1ce8082e440c8241c92b6c (diff) |
generic-container: Add customized container image
Diffstat (limited to 'config/container.nix')
-rw-r--r-- | config/container.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/container.nix b/config/container.nix index f4508f5..4cf3c17 100644 --- a/config/container.nix +++ b/config/container.nix @@ -2,8 +2,13 @@ { boot.isContainer = true; networking.firewall.allowedTCPPorts = [ 22 ]; - services.openssh.enable = lib.mkDefault true; + services = { + openssh.enable = lib.mkDefault true; + openssh.passwordAuthentication = false; + }; system.activationScripts.installInitScript = '' ln -fs $systemConfig/init /init + mkdir -p /sbin/init + ln -fs $systemConfig/init /sbin/init ''; } |