mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
da1b2b5adb
noXLibs is an advanced option for advanced users which know how to recognize and debug build failures which might be caused by the added overlays. The minimal profile should be minimal but also save to use for many people and not cause build failures in packages it really shouldn't.
33 lines
812 B
Nix
33 lines
812 B
Nix
{lib, ...}:
|
|
|
|
{
|
|
meta = {
|
|
maintainers = lib.teams.lxc.members;
|
|
};
|
|
|
|
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;
|
|
}
|