diff --git a/nixos/modules/profiles/container.nix b/nixos/modules/profiles/docker-container.nix similarity index 90% rename from nixos/modules/profiles/container.nix rename to nixos/modules/profiles/docker-container.nix index dd2e6579a9328..df762b7ac5840 100644 --- a/nixos/modules/profiles/container.nix +++ b/nixos/modules/profiles/docker-container.nix @@ -45,10 +45,6 @@ in { ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system ''; - # Disable some features that are not useful in a container. - sound.enable = mkDefault false; - services.udisks2.enable = mkDefault false; - # Install new init script system.activationScripts.installInitScript = '' ln -fs $systemConfig/init /init diff --git a/nixos/modules/virtualisation/docker-image.nix b/nixos/modules/virtualisation/docker-image.nix index 0195ca5c6dce2..9535e3e0d6778 100644 --- a/nixos/modules/virtualisation/docker-image.nix +++ b/nixos/modules/virtualisation/docker-image.nix @@ -2,7 +2,7 @@ { imports = [ - ../profiles/container.nix + ../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/ ]; boot.postBootCommands = diff --git a/nixos/modules/virtualisation/lxc-container.nix b/nixos/modules/virtualisation/lxc-container.nix index 2fa749d542eaf..0208787e7795c 100644 --- a/nixos/modules/virtualisation/lxc-container.nix +++ b/nixos/modules/virtualisation/lxc-container.nix @@ -4,7 +4,7 @@ with lib; { imports = [ - ../profiles/container.nix + ../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/ ]; # Allow the user to login as root without password.