From ce7f1d44b874dcaf711dfe7118ef18f9394033df Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Fri, 23 Jan 2026 20:26:57 -0600 Subject: add authorized keys to authorized keys files --- modules/services/nixos/ssh.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/services/nixos/ssh.nix') diff --git a/modules/services/nixos/ssh.nix b/modules/services/nixos/ssh.nix index 7415f44..6c1b2fc 100644 --- a/modules/services/nixos/ssh.nix +++ b/modules/services/nixos/ssh.nix @@ -32,9 +32,13 @@ in { "jupiter".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPB7feUHl5qoD5zF9AMOV2meViA+wZYdVvbVjPkggZf8"; "ganymede".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINlr+53UmlGVP1blkdNl6NFqn1w2umFJyjH1EVUPKIy9"; }; + + authorizedKeysFiles = [ + "/etc/ssh/authorized_keys.d/locals" + ]; }; - environment.etc."etc/ssh/authorized_keys.d/locals".text = '' + environment.etc."ssh/authorized_keys.d/locals".text = '' ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAvxtKW0rmRBi8J67gLrLv8Zv338AcmZ3P20DePiUfnX mercury ''; -- cgit v1.3.1