dotfiles/homes/x86_64-linux/christopher@cobalt/ssh.nix
Christopher Mühl e51dfb70c9
Add SSH config
2025-08-04 18:21:27 +02:00

28 lines
461 B
Nix

{
config,
lib,
...
}: let
keys = [
"config"
"id_ethnuc"
"id_europium"
"id_github"
"id_hausgold"
"id_homeassistant"
"id_rhenium"
];
in {
elements.secrets.needs = builtins.listToAttrs (
builtins.map
(key:
lib.attrsets.nameValuePair key {
rekeyFile = "ssh/${key}.age";
path = "${config.home.homeDirectory}/.ssh/${key}";
symlink = false;
mode = "0600";
})
keys
);
}