aboutsummaryrefslogblamecommitdiff
path: root/profiles/server.nix
blob: 82a20c7cfb1957f96524bde77534a00dc2930628 (plain) (tree)
1
2
3
4
5
6
7
8
9
 


     

             
                 

    





                                    






                                                          
 




                                                                                      
 
{
  ...
}:
{

  imports = [
    ./default.nix
  ];

  networking = {
    firewall = {
      enable = false;
      allowPing = true;
      logRefusedConnections = false;
    };
  };

  # Used by systemd-resolved, not directly by resolv.conf.
  networking.nameservers = [
    "8.8.8.8#dns.google"
    "1.0.0.1#cloudflare-dns.com"
  ];

  users.users.root.openssh.authorizedKeys.keys = [
    "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi"
  ];

  networking.firewall.allowedTCPPorts = [ 22 ];
}