From 67804c7be85d65ba49abab281e37243306f6fa8c Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Tue, 14 Feb 2023 23:26:40 +0100 Subject: Use hosts-service-type instead of deprecated hosts-file Also, take the opportunity to make a proper service-type for my WireGuard setup. --- tw/system/lap.scm | 5 +++-- tw/system/lud.scm | 1 - tw/system/vin.scm | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'tw/system') 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) -- cgit v1.2.3