✨ [shared] Added homelab systemConfig
This commit is contained in:
@ -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
|
||||
];
|
||||
|
||||
|
@ -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
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user