diff --git a/system/ritchie/ritchie.nix b/system/ritchie/ritchie.nix index 260041a..02403ee 100644 --- a/system/ritchie/ritchie.nix +++ b/system/ritchie/ritchie.nix @@ -20,8 +20,13 @@ in ../shared/filesystem.nix ]; - networking.hostName = "ritchie"; - + networking = { + hostName = "ritchie"; + firewall = { + enable = true; + allowedTCPPorts = [ 2222 ]; + }; + }; users.users.foxsoft = { isNormalUser = true; extraGroups = [ diff --git a/system/shared/shared-configuration.nix b/system/shared/shared-configuration.nix index 7ab47c1..cb8dea6 100644 --- a/system/shared/shared-configuration.nix +++ b/system/shared/shared-configuration.nix @@ -61,6 +61,7 @@ services.openssh = { enable = true; + ports = [ 2222 ]; settings.PasswordAuthentication = false; };