[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;
ssh.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJE9m7YiITe1sDqSZ7Pa8luIw3WToLsypixZEqE4wCQE";
}
{
hostName = "homelab";
system = "x86_64-linux";
wayland.enable = false;
ssh.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIARDv5nRlfPDXdV+Db4FaqeSJZ3/3MO0frYGzuVeqYAl";
}
# TODO Homelab config
];

View File

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