aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-11-22 15:55:51 -0300
committerEuAndreh <eu@euandre.org>2022-11-22 15:55:51 -0300
commit02646fcc86d285ad81a1b5db2b56d89cd050c6f6 (patch)
tree20fd4570d7fd3f84ad44bafbaeb9d998cb4b4f83 /etc
parentetc/ssh/known_hosts: Add wireguard public key alias (diff)
downloaddotfiles-02646fcc86d285ad81a1b5db2b56d89cd050c6f6.tar.gz
dotfiles-02646fcc86d285ad81a1b5db2b56d89cd050c6f6.tar.xz
etc/guix/system.scm: Split "toph" from "toph.tld" variables
Diffstat (limited to 'etc')
-rw-r--r--etc/guix/system.scm12
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm
index 08f0fd8..ce8db71 100644
--- a/etc/guix/system.scm
+++ b/etc/guix/system.scm
@@ -27,7 +27,9 @@
(heredoc:enable-syntax)
(define whoami "andreh")
-(define toph "arrobaponto.org")
+(define toph "toph")
+(define toph.tld "arrobaponto.org")
+
(operating-system
@@ -54,10 +56,12 @@
127.0.0.1 localhost ~a
::1 localhost ~a
- 10.0.2.1 kuvira.wg
- 10.0.2.2 velhinho.wg
+ 10.0.0.0 ~a.wg
+ 10.0.0.1 ~a.wg
"#
host-name
+ host-name
+ toph
host-name)))
(users
(append
@@ -102,7 +106,7 @@
(list
(wireguard-peer
(name "toph")
- (endpoint (string-append toph ":51820"))
+ (endpoint (string-append toph.tld ":51820"))
(public-key "8jJgTIWrs7HNWlJXOwl8A0DKqIiAGa4hhh/hcXm4EUs=")
(allowed-ips '("10.0.0.0/24"))
(keep-alive 25))))))