aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-11-27 09:21:54 -0300
committerEuAndreh <eu@euandre.org>2022-11-27 09:21:54 -0300
commitfaf10f8548ae136b1a5b170a54d479a9f1ad05b8 (patch)
treef70972dc258c3710ed5f7d56165cfdb18607e4da
parentsrc/infrastructure/guix/system.scm: Add catchall email address (diff)
downloadtoph-faf10f8548ae136b1a5b170a54d479a9f1ad05b8.tar.gz
toph-faf10f8548ae136b1a5b170a54d479a9f1ad05b8.tar.xz
src/infrastructure/guix/system.scm: Use custom /etc/hosts file: Include WireGuard addresses
-rw-r--r--src/infrastructure/guix/system.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/infrastructure/guix/system.scm b/src/infrastructure/guix/system.scm
index ff3769a..cf1dddb 100644
--- a/src/infrastructure/guix/system.scm
+++ b/src/infrastructure/guix/system.scm
@@ -1679,6 +1679,19 @@
(locale "fr_FR.UTF-8")
(timezone "America/Sao_Paulo")
(host-name tld)
+ (hosts-file
+ (plain-file
+ "hosts"
+ (format #f
+ #"-
+ 127.0.0.1 localhost ~a
+ ::1 localhost ~a
+
+ 10.0.0.0 toph
+ 10.0.0.1 velhinho
+ "#
+ tld
+ tld)))
(users
(append
(list