Refactor SSH key management to use centralized key retrieval function for nixremote users across configurations.

This commit is contained in:
Danilo Reyes
2025-10-12 20:28:39 -06:00
parent 0f7e28abd0
commit de5ad541b8
6 changed files with 37 additions and 22 deletions

View File

@@ -1,13 +1,13 @@
{ lib, config, ... }:
{ lib, config, inputs, ... }:
{
options.my.users.nixremote = {
enable = lib.mkEnableOption "nixremote user for distributed builds";
authorizedKeys = lib.mkOption {
type = lib.types.listOf lib.types.path;
default = [
../../secrets/ssh/ed25519_nixworkstation.pub
../../secrets/ssh/ed25519_nixserver.pub
../../secrets/ssh/ed25519_nixminiserver.pub
default = inputs.self.lib.getSshKeys [
"nixworkstation"
"nixserver"
"nixminiserver"
];
description = "List of SSH public key files to authorize for nixremote user";
};