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 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tw/system/lap.scm') 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)) -- cgit v1.2.3