31 current 2024-04-17 21:15:51 23.11.20240405.72da83d 6.1.84 *

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

View File

@ -4,26 +4,26 @@
... ...
}: let }: let
sshKeys = name: { sshKeys = name: {
secrets."ssh/id_rsa_${name}.pub" = { "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";
}; };
secrets."ssh/id_rsa_${name}" = { "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 =
{ {
secrets."ssh/config" = { "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 "borg")
// (sshKeys "borg"); // (sshKeys "passgit");
} }