From f2c7a26d2c2f9b1be8b156fe91cbb80e998b9281 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Wed, 5 Jun 2024 19:40:20 -0300 Subject: deploy same user key for all hosts, use that key to sign commit --- secrets/secrets.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'secrets/secrets.nix') diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 3fb2dc0..56f372e 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -1,6 +1,7 @@ let - inherit (builtins) attrValues concatLists; - keys = concatLists (map attrValues (attrValues (import ./pub-ssh-keys.nix))); + inherit (builtins) attrValues readFile; + user-key = readFile ./user-ssh-key.pub; + keys = [ user-key ] ++ (attrValues (import ./pub-ssh-keys.nix)); in { "personal-mail.age".publicKeys = keys; -- cgit v1.2.3