From 5a4fdeb15354da523dfff03686fad0409c2acf2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Wed, 17 Apr 2024 21:08:43 +0200 Subject: [PATCH] 30 current 2024-04-17 21:03:21 23.11.20240405.72da83d 6.1.84 * --- home/jonas/ssh.nix | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/home/jonas/ssh.nix b/home/jonas/ssh.nix index c4ca4c0..b698902 100644 --- a/home/jonas/ssh.nix +++ b/home/jonas/ssh.nix @@ -4,24 +4,26 @@ ... }: let sshKeys = name: { - sops.secrets."ssh/id_rsa_${name}.pub" = { + 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}" = { + 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"; - }; - } - // (sshKeys "passgit") - // (sshKeys "borg") +in { + sops = + { + secrets."ssh/config" = { + sopsFile = ../../secrets/jonas/ssh.yaml; + key = "config"; + path = "${config.home.homeDirectory}/.ssh/config"; + }; + } + // (sshKeys "passgit") + // (sshKeys "borg"); +}