Refactor SSH keys to use shared configuration

Move hardcoded SSH keys to shared/ssh-keys.nix and import in tahani configuration.

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
Christoph Schmatzler
2025-08-11 12:06:19 +02:00
parent 507d6d5aff
commit 06ce4cd768
2 changed files with 9 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
user,
...
}: let
keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOk8iAnIaa1deoc7jw8YACPNVka1ZFJxhnU4G74TmS+p"];
sshKeys = import ../../../shared/ssh-keys.nix;
in {
imports = [
../../../profiles/base
@@ -92,11 +92,11 @@ in {
extraGroups = [
"docker"
];
openssh.authorizedKeys.keys = keys;
openssh.authorizedKeys.keys = sshKeys.keys;
};
root = {
openssh.authorizedKeys.keys = keys;
openssh.authorizedKeys.keys = sshKeys.keys;
};
};