summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2020-07-12 09:20:57 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2020-07-12 09:20:57 -0400
commitcafb9f773bc0e411030e3aa14a9e55f9fd53ed12 (patch)
treeb2b7523701cbb7494c422eeae58958ce52c02ea5
parent8f18eb7eca804031d55b4e9ef08b50f6c61cda1e (diff)
takemi: Factorize my pub key file references.
-rw-r--r--takemi.scm7
1 files 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.