From dd74bbc17c97115df973fe9b9a17f7ce7bb6a99f Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 4 Jan 2021 07:51:37 -0500 Subject: Support multiple keys per user Every key is just a new line in the $USER.pub file. This is not automatically reflected to gitolite, which uses a separate config, so I'll need to come up with a way to replace gitolite someday. --- Biz/Cloud/Git.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Biz/Cloud/Git.nix') diff --git a/Biz/Cloud/Git.nix b/Biz/Cloud/Git.nix index 82761ce..b35b126 100644 --- a/Biz/Cloud/Git.nix +++ b/Biz/Cloud/Git.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { services = { @@ -11,7 +11,11 @@ extraGitoliteRc = '' $RC{SITE_INFO} = 'a computer is a bicycle for the mind.'; ''; - adminPubkey = builtins.readFile ../Keys/Ben.key; + adminPubkey = lib.trivial.pipe ../Keys/Ben.pub [ + builtins.readFile + (lib.strings.splitString "\n") + lib.lists.head + ]; }; }; } -- cgit v1.2.3