1{lib, ...}:
2
3{
4 imports = [
5 ./lxc-image-metadata.nix
6
7 ../installer/cd-dvd/channel.nix
8 ../profiles/clone-config.nix
9 ../profiles/minimal.nix
10 ];
11
12 # Allow the user to login as root without password.
13 users.users.root.initialHashedPassword = lib.mkOverride 150 "";
14
15 # Some more help text.
16 services.getty.helpLine = ''
17
18 Log in as "root" with an empty password.
19 '';
20
21 # Containers should be light-weight, so start sshd on demand.
22 services.openssh.enable = lib.mkDefault true;
23 services.openssh.startWhenNeeded = lib.mkDefault true;
24
25 # As this is intended as a standalone image, undo some of the minimal profile stuff
26 environment.noXlibs = false;
27 documentation.enable = true;
28 documentation.nixos.enable = true;
29 services.logrotate.enable = true;
30}