diff options
author | EuAndreh <eu@euandre.org> | 2024-08-21 14:24:32 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-08-21 15:03:50 -0300 |
commit | d8e167c9b044cb3ae2b7afdffdc86be21c1a2fb8 (patch) | |
tree | e99dfb4fad7b5a1d4f4f77806152432d6c97b1e3 /src | |
parent | mv src/tld.txt src/config/ (diff) | |
download | asami-d8e167c9b044cb3ae2b7afdffdc86be21c1a2fb8.tar.gz asami-d8e167c9b044cb3ae2b7afdffdc86be21c1a2fb8.tar.xz |
src/config/offsite-ssh.txt: Derive from Makefile and include in /etc/
Diffstat (limited to 'src')
-rw-r--r-- | src/config/offsite-ssh.txt | 1 | ||||
-rw-r--r-- | src/guix/system.scm | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/config/offsite-ssh.txt b/src/config/offsite-ssh.txt new file mode 100644 index 0000000..8933e9d --- /dev/null +++ b/src/config/offsite-ssh.txt @@ -0,0 +1 @@ +zh4539@zh4539.rsync.net diff --git a/src/guix/system.scm b/src/guix/system.scm index f6e2948..bad1348 100644 --- a/src/guix/system.scm +++ b/src/guix/system.scm @@ -45,6 +45,10 @@ ((compose pkg:slurp path) "src/config/known-hosts.txt")) +(define +offsite-ssh+ + ((compose pkg:slurp path) + "src/config/offsite-ssh.txt")) + (define +cert.pem+ (pkg:str "/etc/letsencrypt/live/" +tld+ "/cert.pem")) (define +privkey.pem+ (pkg:str "/etc/letsencrypt/live/" +tld+ "/privkey.pem")) @@ -116,8 +120,9 @@ (service q:cyrus-sasl-service-type) (service q:dovecot-service-type) (service q:internet-postfix-service-type) - (simple-service 'known-hosts-etc-file etc-service-type - `(("known_hosts" ,(plain-file "known-hosts.txt" +known-hosts+)))) + (simple-service 'host-specific-etc-file etc-service-type + `(("known_hosts" ,(plain-file "known-hosts.txt" +known-hosts+)) + ("offsite-ssh.txt" ,(plain-file "offsite-ssh.txt" +offsite-ssh+)))) (service mail-aliases-service-type `(("root" "andre") ("support" ,@(map s1:first +users+))))) |