30 current 2024-04-17 21:03:21 23.11.20240405.72da83d 6.1.84 *

This commit is contained in:
Jonas Röger 2024-04-17 21:08:43 +02:00
parent a4d129e52e
commit 5a4fdeb153
Signed by: jonas
GPG Key ID: 4000EB35E1AE0F07

View File

@ -4,24 +4,26 @@
... ...
}: let }: let
sshKeys = name: { sshKeys = name: {
sops.secrets."ssh/id_rsa_${name}.pub" = { secrets."ssh/id_rsa_${name}.pub" = {
sopsFile = ../../secrets/jonas/ssh.yaml; sopsFile = ../../secrets/jonas/ssh.yaml;
key = "keys/${name}/pub"; key = "keys/${name}/pub";
path = "${config.home.homeDirectory}/.ssh/id_rsa_${name}.pub"; path = "${config.home.homeDirectory}/.ssh/id_rsa_${name}.pub";
}; };
sops.secrets."ssh/id_rsa_${name}" = { secrets."ssh/id_rsa_${name}" = {
sopsFile = ../../secrets/jonas/ssh.yaml; sopsFile = ../../secrets/jonas/ssh.yaml;
key = "keys/${name}/priv"; key = "keys/${name}/priv";
path = "${config.home.homeDirectory}/.ssh/id_rsa_${name}"; path = "${config.home.homeDirectory}/.ssh/id_rsa_${name}";
}; };
}; };
in in {
sops =
{ {
sops.secrets."ssh/config" = { secrets."ssh/config" = {
sopsFile = ../../secrets/jonas/ssh.yaml; sopsFile = ../../secrets/jonas/ssh.yaml;
key = "config"; key = "config";
path = "${config.home.homeDirectory}/.ssh/config"; path = "${config.home.homeDirectory}/.ssh/config";
}; };
} }
// (sshKeys "passgit") // (sshKeys "passgit")
// (sshKeys "borg") // (sshKeys "borg");
}