nixos-generators/configuration.nix
2021-06-21 23:27:36 +01:00

12 lines
299 B
Nix

{ config, lib, pkgs, ... }:
{
services.sshd.enable = true;
services.nginx.enable = true;
networking.firewall.allowedTCPPorts = [ 80 ];
users.users.root.password = "nixos";
services.openssh.permitRootLogin = lib.mkDefault "yes";
services.getty.autologinUser = lib.mkDefault "root";
}