aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-24 15:47:52 -0300
committerEuAndreh <eu@euandre.org>2024-08-24 15:47:52 -0300
commit00c330f2d502139faab40b8b08bbdea95d99e418 (patch)
tree4f84c3650e90d0cdc96017e391ea1d01a9edf25b /Makefile
parentsrc/secrets/repo/wireguard-private-key.txt.gpg: Add from server (diff)
downloadserver-00c330f2d502139faab40b8b08bbdea95d99e418.tar.gz
server-00c330f2d502139faab40b8b08bbdea95d99e418.tar.xz
Re-include "id_rsa.pub" in /etc/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index dcfb758..afcde05 100644
--- a/Makefile
+++ b/Makefile
@@ -42,16 +42,14 @@ src/config/tld.txt: Makefile
src/config/offsite-ssh.txt: Makefile
echo '$(OFFSITE_SSH)' | ifnew $@
-system.scm.sentinel: src/guix/system.scm src/config/tld.txt src/config/offsite-ssh.txt
+src/config/root-pubkey.txt: src/keys/SSH/root@$(TLD).id_rsa.pub.txt Makefile
+ cut -d' ' -f8- < src/keys/SSH/root@$(TLD).id_rsa.pub.txt > $@
+
+system.scm.sentinel: src/guix/system.scm src/config/tld.txt src/config/offsite-ssh.txt src/config/root-pubkey.txt
rm -f system.scm*
guix build -v3 -r system.scm -Kf src/guix/system.scm
touch $@
-.SUFFIXES: .stripped
-src/keys/SSH/root@$(TLD).id_rsa.pub.stripped: \
- src/keys/SSH/root@$(TLD).id_rsa.pub.txt
- cut -d' ' -f8- < $*.txt > $@
-
check-unit: