nixos-generators/configuration.nix
2024-10-29 22:18:44 +01:00

13 lines
336 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";
}