Always enable container logins

This commit is contained in:
Eelco Dolstra 2014-04-01 15:42:18 +02:00
parent 6da72a4456
commit fee81c3739
4 changed files with 5 additions and 4 deletions

View File

@ -294,6 +294,7 @@
./tasks/scsi-link-power-management.nix
./tasks/swraid.nix
./testing/service-runner.nix
./virtualisation/container-login.nix
./virtualisation/containers.nix
./virtualisation/libvirtd.nix
#./virtualisation/nova.nix

View File

@ -1,8 +1,10 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
with lib;
{
config = {
config = mkIf config.boot.isContainer {
# Provide a login prompt on /var/lib/login.socket. On the host,
# you can connect to it by running socat

View File

@ -105,7 +105,6 @@ in
security.initialRootPassword = mkDefault "!";
networking.hostName = mkDefault name;
networking.useDHCP = false;
imports = [ ./container-login.nix ];
};
in [ extraConfig config.config ];
prefix = [ "containers" name ];

View File

@ -116,7 +116,6 @@ with pkgs.lib;
security.initialRootPassword = mkDefault "!";
networking.hostName = mkDefault "$containerName";
networking.useDHCP = false;
imports = [ <nixpkgs/nixos/modules/virtualisation/container-login.nix> ];
$extraConfig
}
EOF