From cafb9f773bc0e411030e3aa14a9e55f9fd53ed12 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 12 Jul 2020 09:20:57 -0400 Subject: takemi: Factorize my pub key file references. --- takemi.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/takemi.scm b/takemi.scm index 233ae9b..93c2d94 100644 --- a/takemi.scm +++ b/takemi.scm @@ -5,6 +5,7 @@ "/etc/letsencrypt/live/dthompson.us/fullchain.pem") (define letsencrypt-cert-key "/etc/letsencrypt/live/dthompson.us/privkey.pem") +(define dave-pub-key (local-file "dave.pub")) (define takemi-os (operating-system @@ -47,11 +48,11 @@ (openssh-configuration (password-authentication? #f) (authorized-keys - `(("dave" ,(local-file "dave.pub")) - ("publish" ,(local-file "dave.pub")))))) + `(("dave" ,dave-pub-key) + ("publish" ,dave-pub-key))))) (service gitolite-service-type (gitolite-configuration - (admin-pubkey (local-file "dave.pub")) + (admin-pubkey dave-pub-key) (rc-file (gitolite-rc-file ;; Grant read access to git group so ;; cgit will work. -- cgit v1.2.3