From 37d30406c48c1fbe79fd6db4cd2ccecf265792f5 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 25 Nov 2022 14:02:25 +0900 Subject: Cache DNS --- guix/system.scm | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/guix/system.scm b/guix/system.scm index 069f001..887aa16 100644 --- a/guix/system.scm +++ b/guix/system.scm @@ -2,14 +2,7 @@ ;; by the graphical installer. (use-modules (gnu)) -(use-service-modules - avahi - desktop - networking - nix - sound - ssh - xorg) +(use-service-modules avahi desktop dns networking nix sound ssh xorg) (operating-system (locale "en_DK.utf8") @@ -27,7 +20,8 @@ (packages (append (specifications->packages - '("curl" "fd" "file" "htop" "nss-certs" "ranger" "ripgrep" "vim-full")) + '("curl" "fd" "file" "htop" "nss-certs" + "ranger" "ripgrep" "rsync" "vim-full")) %base-packages)) (services (cons* (service openssh-service-type @@ -39,8 +33,21 @@ (keyboard-layout keyboard-layout))) (screen-locker-service (specification->package "slock")) polkit-wheel-service - (service network-manager-service-type) - (service wpa-supplicant-service-type) + (service dnsmasq-service-type + (dnsmasq-configuration + (no-resolv? #t) + (servers '("9.9.9.9" "149.112.112.112")))) + (service static-networking-service-type + (list (static-networking + (addresses + (list (network-address + (device "enp5s0") + (value "192.168.0.7/24")))) + (routes + (list (network-route + (destination "default") + (gateway "192.168.0.1")))) + (name-servers '("0.0.0.0"))))) ; dnsmasq (service avahi-service-type) (udisks-service) (elogind-service) -- cgit 1.4.1