From 5e02cdc7ed82ac10375cacfca6920f20f5729059 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 13 Feb 2025 00:29:25 -0800 Subject: Add vps capabilities --- nix/systems/installer/default.nix | 2 +- nix/systems/spontaneity/default.nix | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'nix/systems') diff --git a/nix/systems/installer/default.nix b/nix/systems/installer/default.nix index d3d1693..90a58db 100644 --- a/nix/systems/installer/default.nix +++ b/nix/systems/installer/default.nix @@ -21,7 +21,7 @@ in enable = true; ports = [ 22 ]; settings = { - PasswordAuthentication = true; + PasswordAuthentication = false; AllowUsers = null; UseDns = true; PermitRootLogin = lib.mkForce "prohibit-password"; diff --git a/nix/systems/spontaneity/default.nix b/nix/systems/spontaneity/default.nix index df3dc6b..a40c53a 100644 --- a/nix/systems/spontaneity/default.nix +++ b/nix/systems/spontaneity/default.nix @@ -17,4 +17,8 @@ grub.enable = true; }; }; + config.networking.firewall.allowedTCPPorts = [ + 80 + 443 + ]; } -- cgit