From 1e90166600d0be1c4178a3a721790fca5ac2c88a Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Wed, 5 Jun 2024 18:54:36 -0300 Subject: add ssh automatic signing through ssh --- secrets/secrets.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'secrets/secrets.nix') diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 706d1db..3fb2dc0 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -1,9 +1,6 @@ let - kunagisa-user = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINWxS8tdN3j7Vm337RmJTzYTMbkAZN5g610ZesH4vhd8"; - hanekawa-user = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOafACtb4IgSczDrollTm/t/xIYcVdLlUxDz72TxsZJZ"; - larissa-user = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGFQN59YDFwwQt/1rb1dHZnxsNV2geWUvHyTKqjdSA52"; - hosts-keys = builtins.attrValues (import ./hosts-pub-keys.nix); - keys = [ kunagisa-user hanekawa-user larissa-user] ++ hosts-keys; + inherit (builtins) attrValues concatLists; + keys = concatLists (map attrValues (attrValues (import ./pub-ssh-keys.nix))); in { "personal-mail.age".publicKeys = keys; -- cgit v1.2.3