From 176701fe8773f6021034f2e22fbe4045c59d867d Mon Sep 17 00:00:00 2001 From: ant Date: Wed, 3 Sep 2025 18:53:31 +0200 Subject: [PATCH] hs have root access to ks --- os/ks/configuration.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/os/ks/configuration.nix b/os/ks/configuration.nix index f4b5dae..f4530af 100644 --- a/os/ks/configuration.nix +++ b/os/ks/configuration.nix @@ -3,11 +3,7 @@ let domain = "antoinevaure.fr"; domainAlex = "pulsewidth.ovh"; - sshKeys = with (import ../../sshKeys.nix); [ - basado - hs - moon - ]; + sshKeys = (import ../../sshKeys.nix); in { imports = [ ./hardware-configuration.nix @@ -27,6 +23,8 @@ in { settings.PasswordAuthentication = false; }; + users.users.root.openssh.authorizedKeys.keys = [ sshKeys.hs ]; + users.users.ant = { isNormalUser = true; description = "ant"; @@ -35,7 +33,11 @@ in { "wheel" "jellyfin" ]; - openssh.authorizedKeys.keys = sshKeys; + openssh.authorizedKeys.keys = with sshKeys; [ + basado + hs + moon + ]; }; security.sudo.wheelNeedsPassword = false;