diff options
author | EuAndreh <eu@euandre.org> | 2023-02-25 13:27:56 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-25 13:28:08 -0300 |
commit | bc16c07a8976140d0f1b620bc5686a4fd026e1f4 (patch) | |
tree | a7a24cd98513e7d71862b8d09ee7da38ab111c4f | |
parent | etc/nix/configuration.nix: Use Flutter 3 package (diff) | |
download | dotfiles-bc16c07a8976140d0f1b620bc5686a4fd026e1f4.tar.gz dotfiles-bc16c07a8976140d0f1b620bc5686a4fd026e1f4.tar.xz |
etc/guix/system.scm: Refactor (hosts-file ...) into newer hosts-service-type
-rw-r--r-- | etc/guix/system.scm | 17 |
1 files changed, 4 insertions, 13 deletions
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)) |