2023-08-25 03:00:42 +00:00
|
|
|
{lib, ...}:
|
|
|
|
|
|
|
|
{
|
2024-08-10 17:03:28 +00:00
|
|
|
meta = {
|
|
|
|
maintainers = lib.teams.lxc.members;
|
|
|
|
};
|
|
|
|
|
2023-08-25 03:00:42 +00:00
|
|
|
imports = [
|
|
|
|
./lxc-image-metadata.nix
|
|
|
|
|
|
|
|
../installer/cd-dvd/channel.nix
|
|
|
|
../profiles/clone-config.nix
|
|
|
|
../profiles/minimal.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Allow the user to login as root without password.
|
|
|
|
users.users.root.initialHashedPassword = lib.mkOverride 150 "";
|
|
|
|
|
|
|
|
# Some more help text.
|
|
|
|
services.getty.helpLine = ''
|
|
|
|
|
|
|
|
Log in as "root" with an empty password.
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Containers should be light-weight, so start sshd on demand.
|
|
|
|
services.openssh.enable = lib.mkDefault true;
|
|
|
|
services.openssh.startWhenNeeded = lib.mkDefault true;
|
|
|
|
|
|
|
|
# As this is intended as a standalone image, undo some of the minimal profile stuff
|
|
|
|
documentation.enable = true;
|
|
|
|
documentation.nixos.enable = true;
|
|
|
|
services.logrotate.enable = true;
|
|
|
|
}
|