From 2768bbde11be026d6bc6780a16546769dce09859 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Thu, 30 Oct 2025 18:25:22 +0900 Subject: [PATCH] fix --- modules/core/services.nix | 9 --------- modules/core/ssh.nix | 8 +++++++- 2 files changed, 7 insertions(+), 10 deletions(-) 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 = {