diff --git a/modules/core/services.nix b/modules/core/services.nix index b2ee128..1bfe35d 100644 --- a/modules/core/services.nix +++ b/modules/core/services.nix @@ -1,14 +1,5 @@ { ... }: { services = { - openssh = { - enable = false; # Enable SSH - settings = { - PermitRootLogin = "no"; # Prevent root from SSH login - PasswordAuthentication = false; - KbdInteractiveAuthentication = true; - }; - ports = [ 22 ]; - }; blueman.enable = true; # Bluetooth Support tumbler.enable = true; # Image/video preview diff --git a/modules/core/ssh.nix b/modules/core/ssh.nix index 5ed74e3..11e4f1b 100644 --- a/modules/core/ssh.nix +++ b/modules/core/ssh.nix @@ -3,10 +3,16 @@ imports = [ inputs.auth-keys-hub.nixosModules.auth-keys-hub ]; programs.ssh.startAgent = true; - + services.openssh = { enable = true; openFirewall = true; + settings = { + PermitRootLogin = "no"; # Prevent root from SSH login + PasswordAuthentication = false; + KbdInteractiveAuthentication = true; + }; + ports = [ 22 ]; }; programs.auth-keys-hub = {