forked from mirrors/nixpkgs
container.nix -> docker-container.nix
This commit is contained in:
parent
57b05765c9
commit
1cb5583c05
nixos/modules
|
@ -45,10 +45,6 @@ in {
|
||||||
${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
|
${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
|
# Install new init script
|
||||||
system.activationScripts.installInitScript = ''
|
system.activationScripts.installInitScript = ''
|
||||||
ln -fs $systemConfig/init /init
|
ln -fs $systemConfig/init /init
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../profiles/container.nix
|
../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.postBootCommands =
|
boot.postBootCommands =
|
||||||
|
|
|
@ -4,7 +4,7 @@ with lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../profiles/container.nix
|
../profiles/docker-container.nix # FIXME, shouldn't include something from profiles/
|
||||||
];
|
];
|
||||||
|
|
||||||
# Allow the user to login as root without password.
|
# Allow the user to login as root without password.
|
||||||
|
|
Loading…
Reference in a new issue