diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-11-25 14:02:25 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-11-25 14:02:25 +0900 |
commit | 37d30406c48c1fbe79fd6db4cd2ccecf265792f5 (patch) | |
tree | 0cf95096e6c07370405aeb3170d586474fef092b /guix | |
parent | a8fd231d6c936f7333177b219b397e9cfa659a63 (diff) | |
download | dotfiles-37d30406c48c1fbe79fd6db4cd2ccecf265792f5.tar.gz |
Cache DNS
Diffstat (limited to 'guix')
-rw-r--r-- | guix/system.scm | 29 |
1 files 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) |