diff options
Diffstat (limited to 'etc/guix/system.scm')
-rw-r--r-- | etc/guix/system.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm index 2a1f77c..e6dddc2 100644 --- a/etc/guix/system.scm +++ b/etc/guix/system.scm @@ -11,6 +11,7 @@ (gnu services security-token) (gnu services sound) (gnu services virtualization) + (gnu services vpn) (gnu services xorg) (gnu system keyboard) (gnu system file-systems) @@ -40,6 +41,18 @@ (keyboard-layout (keyboard-layout "br" #:options '("caps:swapescape" "esperanto:qwerty"))) (host-name "velhinho") + (hosts-file + (plain-file + "hosts" + (format #f + #"- + 127.0.0.1 localhost ~a + ::1 localhost ~a + + 10.0.2.1 kuvira.wg + "# + host-name + host-name))) (users (append (list @@ -72,6 +85,17 @@ (service virtlog-service-type) (service gnome-desktop-service-type) (service gnome-keyring-service-type) + (service wireguard-service-type + (wireguard-configuration + (addresses '("10.0.2.2/24")) + (peers + (list + (wireguard-peer + (name "kuvira") + (endpoint "euandreh.xyz:51820") + (public-key "FwXqY9wXO8jK/D7lyprI+cslVeb9AqOQBAbxKG6S5lE=") + (allowed-ips '("10.0.2.1/32")) + (keep-alive 25)))))) (service qemu-binfmt-service-type (qemu-binfmt-configuration (platforms |