diff --git a/users/default.nix b/users/default.nix index ea32c55..0319dce 100644 --- a/users/default.nix +++ b/users/default.nix @@ -20,6 +20,7 @@ shell = lib.mkForce config.users.defaultUserShell; group = "root"; hashedPasswordFile = config.age.secrets.user-root-password.path; + openssh.authorizedPrincipals = [ "julien_root" ]; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGa+7n7kNzb86pTqaMn554KiPrkHRGeTJ0asY1NjSbpr julien@tower" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMAa0wll9ildhgPiV0DhgJXXtw3TQr5VkNxxxPspHSbX julien@gallifrey" diff --git a/users/julien.nix b/users/julien.nix index 57b7ba8..0068613 100644 --- a/users/julien.nix +++ b/users/julien.nix @@ -18,6 +18,7 @@ ]; shell = pkgs.fish; hashedPasswordFile = config.age.secrets.julien-password.path; + openssh.authorizedPrincipals = [ "julien" ]; }; nix.settings.allowed-users = [ "julien" ];