diff options
| author | EuAndreh <eu@euandre.org> | 2026-06-11 06:37:32 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2026-06-11 06:37:32 -0300 |
| commit | 5c40bbbc061a31402a9c6715e8884fa80820a660 (patch) | |
| tree | 8a7f0b958616115d209ff9b30c22fb4e4fa53e13 | |
| parent | etc/guix/system.scm: Increase the list of desired-architectures (diff) | |
| download | dotfiles-5c40bbbc061a31402a9c6715e8884fa80820a660.tar.gz dotfiles-5c40bbbc061a31402a9c6715e8884fa80820a660.tar.xz | |
etc/guix/system.scm: Add wireguard config for asami
| -rw-r--r-- | etc/guix/system.scm | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm index 3cc4f2d1..163ce5c4 100644 --- a/etc/guix/system.scm +++ b/etc/guix/system.scm @@ -35,7 +35,8 @@ (define host-name "novinho") -(define wg-ipaddr "10.0.0.5") +(define wg0-ipaddr "10.0.0.5") +(define wg1-ipaddr "10.0.1.5") ;; Implement wireless printing before sending upstream @@ -180,7 +181,7 @@ Seiko Epson Color Ink Jet Printers.") (simple-service 'add-wireguard-aliases hosts-service-type (list (host "10.0.0.0" "toph") - (host wg-ipaddr host-name))) + (host "10.0.1.0" "asami"))) (service q:local-postfix-service-type (q:postfix-configuration (main.cf-extra #"- @@ -201,9 +202,11 @@ Seiko Epson Color Ink Jet Printers.") ("andreh" "eu@euandre.org"))) (service wireguard-service-type (wireguard-configuration + (interface "wg0") + (private-key "/etc/wireguard/toph.key") (addresses (list - (string-append wg-ipaddr "/32"))) + (string-append wg0-ipaddr "/32"))) (peers (list (wireguard-peer @@ -212,6 +215,21 @@ Seiko Epson Color Ink Jet Printers.") (public-key "8jJgTIWrs7HNWlJXOwl8A0DKqIiAGa4hhh/hcXm4EUs=") (allowed-ips '("10.0.0.0/32")) (keep-alive 25)))))) + (service wireguard-service-type + (wireguard-configuration + (interface "wg1") + (private-key "/etc/wireguard/asami.key") + (addresses + (list + (string-append wg1-ipaddr "/32"))) + (peers + (list + (wireguard-peer + (name "asami") + (endpoint "papo.im:51820") + (public-key "xWeNyN4GmdsoGZKswuNVj6z7WHqlE5WwUGs3S1quBis=") + (allowed-ips '("10.0.1.0/32")) + (keep-alive 25)))))) (service qemu-binfmt-service-type (qemu-binfmt-configuration (platforms |
