[shared] Added homelab systemConfig

This commit is contained in:
2025-05-20 21:37:26 +02:00
parent 882c42a093
commit adb02fbcc2
2 changed files with 8 additions and 8 deletions

View File

@ -87,6 +87,12 @@
wayland.enable = false; wayland.enable = false;
ssh.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJE9m7YiITe1sDqSZ7Pa8luIw3WToLsypixZEqE4wCQE"; ssh.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJE9m7YiITe1sDqSZ7Pa8luIw3WToLsypixZEqE4wCQE";
} }
{
hostName = "homelab";
system = "x86_64-linux";
wayland.enable = false;
ssh.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIARDv5nRlfPDXdV+Db4FaqeSJZ3/3MO0frYGzuVeqYAl";
}
# TODO Homelab config # TODO Homelab config
]; ];

View File

@ -8,12 +8,6 @@
with builtins; with builtins;
let let
domain = "dns.${common.domain}"; domain = "dns.${common.domain}";
allSystems = systems ++ [
{
hostName = "homelab";
ssh.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIARDv5nRlfPDXdV+Db4FaqeSJZ3/3MO0frYGzuVeqYAl";
}
];
in in
{ {
programs.ssh.knownHosts = listToAttrs ( programs.ssh.knownHosts = listToAttrs (
@ -23,9 +17,9 @@ in
extraHostNames = [ "${system.hostName}.${domain}" ]; extraHostNames = [ "${system.hostName}.${domain}" ];
publicKey = system.ssh.publicKey; publicKey = system.ssh.publicKey;
}; };
}) allSystems }) systems
); );
users.users.${systemConfig.username}.openssh.authorizedKeys.keys = ( users.users.${systemConfig.username}.openssh.authorizedKeys.keys = (
map (system: system.ssh.publicKey) allSystems map (system: system.ssh.publicKey) systems
); );
} }