From 8f9d6204eeaa0f68a7850335461156f6919ad6f1 Mon Sep 17 00:00:00 2001 From: DerGrumpf Date: Sun, 5 Apr 2026 21:09:17 +0200 Subject: [PATCH] Fixed Option --- nixos/ssh.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/ssh.nix b/nixos/ssh.nix index 5d8fbd2..5491dc1 100644 --- a/nixos/ssh.nix +++ b/nixos/ssh.nix @@ -1,4 +1,5 @@ -_: { +{ primaryUser, ... }: +{ services.openssh = { enable = true; openFirewall = true; @@ -6,9 +7,8 @@ _: { PasswordAuthentication = false; PermitRootLogin = "no"; }; - authorizedKeys.keyFiles = [ ../secrets/ssh-key ]; }; - + users.users.${primaryUser}.openssh.authorizedKeys.keyFiles = [ ../secrets/ssh-key ]; programs.ssh.startAgent = true; }