nixos-generators/configuration.nix

18 lines
350 B
Nix
Raw Normal View History

2018-04-28 13:01:45 +03:00
{
2023-05-29 10:35:13 +03:00
config,
lib,
pkgs,
...
}: {
2018-04-28 13:01:45 +03:00
services.sshd.enable = true;
services.nginx.enable = true;
2023-05-29 10:35:13 +03:00
networking.firewall.allowedTCPPorts = [80];
system.stateVersion = lib.version;
users.users.root.password = "nixos";
2023-05-29 12:01:19 +03:00
services.openssh.settings.PermitRootLogin = lib.mkDefault "yes";
services.getty.autologinUser = lib.mkDefault "root";
2018-04-28 13:01:45 +03:00
}