From bc16c07a8976140d0f1b620bc5686a4fd026e1f4 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 25 Feb 2023 13:27:56 -0300 Subject: etc/guix/system.scm: Refactor (hosts-file ...) into newer hosts-service-type --- etc/guix/system.scm | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'etc') diff --git a/etc/guix/system.scm b/etc/guix/system.scm index 3b91654..0bcab17 100644 --- a/etc/guix/system.scm +++ b/etc/guix/system.scm @@ -395,19 +395,6 @@ Seiko Epson Color Ink Jet Printers.") (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 - ::1 localhost - - 10.0.0.0 ~a - 10.0.0.1 ~a - "# - toph - host-name))) (users (append (list @@ -437,6 +424,10 @@ Seiko Epson Color Ink Jet Printers.") (service docker-service-type) (service libvirt-service-type) (service virtlog-service-type) + (simple-service 'add-wireguard-aliases hosts-service-type + (list + (host "10.0.0.0" toph) + (host "10.0.0.1" host-name))) (simple-service 'create-/var/lib/euandreh activation-service-type #~(begin (use-modules (guix build utils)) -- cgit v1.2.3