Release NixOS 23.11
[NixPkgs.git] / nixos / modules / virtualisation / lxc-instance-common.nix
blobd6a0e05fb1c961411fe915e935345e73f4a86e27
1 {lib, ...}:
4   imports = [
5     ./lxc-image-metadata.nix
7     ../installer/cd-dvd/channel.nix
8     ../profiles/clone-config.nix
9     ../profiles/minimal.nix
10   ];
12   # Allow the user to login as root without password.
13   users.users.root.initialHashedPassword = lib.mkOverride 150 "";
15   # Some more help text.
16   services.getty.helpLine = ''
18     Log in as "root" with an empty password.
19   '';
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;
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;