29 current 2024-04-17 20:47:36 23.11.20240405.72da83d 6.1.84 *

This commit is contained in:
Jonas Röger 2024-04-17 20:52:51 +02:00
parent 964970173b
commit 7e5f276e2a
Signed by: jonas
GPG Key ID: 4000EB35E1AE0F07

View File

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