nixos-generators/configuration.nix

16 lines
342 B
Nix

{
lib,
...
}: {
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.mkOverride 999 "yes";
services.getty.autologinUser = lib.mkOverride 999 "root";
}