summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-12-26 10:13:58 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-12-26 10:13:58 +0100
commit0589bc83d57f96b685de3bac4b2fb9cde5f07a8f (patch)
treecaf487d170c3c8b1d17dbbfde6c7e5c8835fa45f /hosts
parent270778266aea356a600d42b9ab50cf036b7df34d (diff)
downloadnixos-0589bc83d57f96b685de3bac4b2fb9cde5f07a8f.tar
nixos-0589bc83d57f96b685de3bac4b2fb9cde5f07a8f.tar.gz
nixos-0589bc83d57f96b685de3bac4b2fb9cde5f07a8f.tar.bz2
nixos-0589bc83d57f96b685de3bac4b2fb9cde5f07a8f.tar.xz
nixos-0589bc83d57f96b685de3bac4b2fb9cde5f07a8f.zip
vidhar: unbound
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/default.nix11
-rw-r--r--hosts/vidhar/dsl.nix6
-rw-r--r--hosts/vidhar/zfs.nix5
3 files changed, 19 insertions, 3 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix
index 25dcc7db..a8362202 100644
--- a/hosts/vidhar/default.nix
+++ b/hosts/vidhar/default.nix
@@ -260,5 +260,16 @@
260 260
261 cpuFreqGovernor = "schedutil"; 261 cpuFreqGovernor = "schedutil";
262 }; 262 };
263
264 services.unbound = {
265 enable = true;
266 resolveLocalQueries = false;
267 stateDir = "/var/lib/unbound";
268 settings = {
269 server = {
270 interface = ["0.0.0.0" "::"];
271 };
272 };
273 };
263 }; 274 };
264} 275}
diff --git a/hosts/vidhar/dsl.nix b/hosts/vidhar/dsl.nix
index e66f609b..cfbae7b5 100644
--- a/hosts/vidhar/dsl.nix
+++ b/hosts/vidhar/dsl.nix
@@ -69,9 +69,9 @@ in {
69 }; 69 };
70 networkConfig = { 70 networkConfig = {
71 LinkLocalAddressing = "no"; 71 LinkLocalAddressing = "no";
72 DNS = [ 72 DNS = [ "::1" "127.0.0.1" ];
73 "1.1.1.1" "1.0.0.1" 73 DNSSEC = "true";
74 ]; 74 Domains = ["~."];
75 }; 75 };
76 }; 76 };
77 }; 77 };
diff --git a/hosts/vidhar/zfs.nix b/hosts/vidhar/zfs.nix
index c845a480..3b29a093 100644
--- a/hosts/vidhar/zfs.nix
+++ b/hosts/vidhar/zfs.nix
@@ -57,6 +57,11 @@ in {
57 neededForBoot = true; 57 neededForBoot = true;
58 }; 58 };
59 59
60 "/var/lib/unbound" =
61 { device = "ssd-raid1/local/var-lib-unbound";
62 fsType = "zfs";
63 };
64
60 "/var/log" = 65 "/var/log" =
61 { device = "ssd-raid1/local/var-log"; 66 { device = "ssd-raid1/local/var-log";
62 fsType = "zfs"; 67 fsType = "zfs";