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