28 lines
450 B
Nix
28 lines
450 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
keys = [
|
|
"config"
|
|
"id_ethnuc"
|
|
"id_europium"
|
|
"id_github"
|
|
"id_hausgold"
|
|
"id_homeassistant"
|
|
"id_alvin"
|
|
];
|
|
in {
|
|
bosun.secrets = builtins.listToAttrs (
|
|
builtins.map
|
|
(key:
|
|
lib.attrsets.nameValuePair key {
|
|
rekeyFile = "ssh/${key}.age";
|
|
path = "${config.home.homeDirectory}/.ssh/${key}";
|
|
|
|
symlink = false;
|
|
mode = "0600";
|
|
})
|
|
keys
|
|
);
|
|
}
|