.hive/modules/home/ssh.nix

21 lines
464 B
Nix

{config, ...}: let
sshKeys = name: {
"ssh/id_${name}" = {
sopsFile = ../../secrets/jonas/ssh.yaml;
key = "keys/${name}";
path = "${config.home.homeDirectory}/.ssh/id_${name}";
};
};
in {
sops.secrets =
{
"ssh/config" = {
sopsFile = ../../secrets/jonas/ssh.yaml;
key = "config";
path = "${config.home.homeDirectory}/.ssh/config";
};
}
// (sshKeys "borg")
// (sshKeys "passgit");
}