summaryrefslogtreecommitdiff
path: root/tw/system
diff options
context:
space:
mode:
authorTimo Wilken2023-02-14 23:26:40 +0100
committerTimo Wilken2023-02-14 23:26:40 +0100
commit67804c7be85d65ba49abab281e37243306f6fa8c (patch)
treeaff1c4bec78a44bbdf45c0b4a82aa93e839f8b0a /tw/system
parent2073a3427e6d61ff5c8393a37b0e8934f1352426 (diff)
Use hosts-service-type instead of deprecated hosts-file
Also, take the opportunity to make a proper service-type for my WireGuard setup.
Diffstat (limited to 'tw/system')
-rw-r--r--tw/system/lap.scm5
-rw-r--r--tw/system/lud.scm1
-rw-r--r--tw/system/vin.scm1
3 files changed, 3 insertions, 4 deletions
diff --git a/tw/system/lap.scm b/tw/system/lap.scm
index d3227dc9..04a93953 100644
--- a/tw/system/lap.scm
+++ b/tw/system/lap.scm
@@ -138,7 +138,6 @@ support extra features (acr, pmu, gr).")
(locale-definition (name "en_US.utf8") (source "en_US"))
(locale-definition (name "fr_FR.utf8") (source "fr_FR"))))
- (hosts-file %wireguard-etc-hosts)
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss)
@@ -293,7 +292,9 @@ support extra features (acr, pmu, gr).")
(bluetooth-service)
- (wireguard-service host-name)
+ (service tw-wireguard-service-type
+ (tw-wireguard-configuration
+ (this-host host-name)))
(service docker-service-type
(docker-configuration))
diff --git a/tw/system/lud.scm b/tw/system/lud.scm
index f7787843..f376f752 100644
--- a/tw/system/lud.scm
+++ b/tw/system/lud.scm
@@ -205,7 +205,6 @@ ProxyPass \"/\" \"https://127.0.0.1:48448/\"
(locale-definition (name "pt_BR.utf8") (source "pt_BR"))
(locale-definition (name "en_US.utf8") (source "en_US"))))
- (hosts-file %wireguard-etc-hosts)
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss)
diff --git a/tw/system/vin.scm b/tw/system/vin.scm
index 834ce273..e8baec57 100644
--- a/tw/system/vin.scm
+++ b/tw/system/vin.scm
@@ -27,7 +27,6 @@
(locale-definition (name "fr_FR.utf8") (source "fr_FR"))
(locale-definition (name "en_US.utf8") (source "en_US"))))
- (hosts-file %wireguard-etc-hosts)
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss)