mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
Make initialRootPassword overrideable in all virtualisation modules, not just virtualbox.
This commit is contained in:
parent
51c9dbc9f3
commit
d5211b0e0e
3 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ with pkgs.lib;
|
|||
modules =
|
||||
let extraConfig =
|
||||
{ boot.isContainer = true;
|
||||
security.initialRootPassword = "!";
|
||||
security.initialRootPassword = mkDefault "!";
|
||||
networking.hostName = mkDefault name;
|
||||
};
|
||||
in [ extraConfig config.config ];
|
||||
|
@ -134,4 +134,4 @@ with pkgs.lib;
|
|||
}) config.systemd.containers;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue