From 4f1c8d4e7f156de7c068d0e2784780b9c64adf14 Mon Sep 17 00:00:00 2001 From: Julia Lange Date: Thu, 10 Jul 2025 12:16:39 -0700 Subject: [PATCH] Ssh, change default port to 22 To preserve current connections Onizuka's port was manually reverted to the old 922 default, with the intention to follow that --- hosts/onizuka/host.nix | 5 ++++- nixosModules/services/ssh/service.nix | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/onizuka/host.nix b/hosts/onizuka/host.nix index d2dbc49..e0227cd 100644 --- a/hosts/onizuka/host.nix +++ b/hosts/onizuka/host.nix @@ -12,7 +12,10 @@ system.timezone = "America/Los_Angeles"; system.users.bigWheels = [ "pan" ]; - sshd.enable = true; + sshd = { + enable = true; + port = 922; + } tailscale.enable = true; tuigreet.enable = true; diff --git a/nixosModules/services/ssh/service.nix b/nixosModules/services/ssh/service.nix index addf235..43c8991 100644 --- a/nixosModules/services/ssh/service.nix +++ b/nixosModules/services/ssh/service.nix @@ -4,7 +4,7 @@ options.sshd = { enable = lib.mkEnableOption "Enables ssh daemon"; port = lib.mkOption { - default = 922; + default = 22; type = lib.types.port; }; };