[shared] Merge knownSystems into systems attrSet

This commit is contained in:
2025-10-18 13:49:54 +02:00
parent c07940e86f
commit 8ea8cf381b
3 changed files with 2 additions and 20 deletions

View File

@@ -3,13 +3,9 @@
lib,
systemConfig,
systems,
knownSystems,
common,
...
}:
let
allSystems = knownSystems // systems;
in
{
programs.ssh.knownHosts = builtins.mapAttrs (hostName: system: {
extraHostNames = [
@@ -21,8 +17,8 @@ in
)
];
publicKey = system.ssh.publicKey;
}) allSystems;
}) systems;
users.users.${systemConfig.username}.openssh.authorizedKeys.keys = (
lib.mapAttrsToList (_hostName: system: system.ssh.publicKey) allSystems
lib.mapAttrsToList (_hostName: system: system.ssh.publicKey) systems
);
}