mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-25 19:07:59 +03:00
866c15b90c
Since we generate whole images we don't have state and can always go with the last.
18 lines
350 B
Nix
18 lines
350 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
services.sshd.enable = true;
|
|
services.nginx.enable = true;
|
|
|
|
networking.firewall.allowedTCPPorts = [80];
|
|
|
|
system.stateVersion = lib.version;
|
|
|
|
users.users.root.password = "nixos";
|
|
services.openssh.settings.PermitRootLogin = lib.mkDefault "yes";
|
|
services.getty.autologinUser = lib.mkDefault "root";
|
|
}
|