Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move coredns config into nix file

+31 -30
-29
coredns/config
··· 1 - packetlost.dev { 2 - hosts ${./coredns/packetlost.dev.hosts} packetlost.dev { 3 - fallthrough 4 - } 5 - bind enp4s0f1 6 - } 7 - ngp.computer { 8 - hosts ${./coredns/ngp.computer.hosts} ngp.computer { 9 - fallthrough 10 - } 11 - bind enp4s0f1 12 - } 13 - localhost { 14 - hosts ${./coredns/localhost.hosts} localhost { 15 - fallthrough 16 - } 17 - bind enp4s0f1 18 - } 19 - . { 20 - # NextDNS 21 - forward . tls://2a07:a8c0::dd:2feb:853 tls://2a07:a8c1::dd:2feb:853 tls://45.90.28.93:853 tls://45.90.30.93:853 { 22 - tls_servername dd2feb.dns.nextdns.io 23 - health_check 5s 24 - } 25 - bind enp4s0f1 26 - cache 27 - errors 28 - log 29 - }
+31 -1
services.nix
··· 99 99 100 100 services.coredns = { 101 101 enable = true; 102 - config = lib.readFile ./coredns/config; 102 + config = '' 103 + packetlost.dev { 104 + hosts ${./coredns/packetlost.dev.hosts} packetlost.dev { 105 + fallthrough 106 + } 107 + bind enp4s0f1 108 + } 109 + ngp.computer { 110 + hosts ${./coredns/ngp.computer.hosts} ngp.computer { 111 + fallthrough 112 + } 113 + bind enp4s0f1 114 + } 115 + localhost { 116 + hosts ${./coredns/localhost.hosts} localhost { 117 + fallthrough 118 + } 119 + bind enp4s0f1 120 + } 121 + . { 122 + # NextDNS 123 + forward . tls://2a07:a8c0::dd:2feb:853 tls://2a07:a8c1::dd:2feb:853 tls://45.90.28.93:853 tls://45.90.30.93:853 { 124 + tls_servername dd2feb.dns.nextdns.io 125 + health_check 5s 126 + } 127 + bind enp4s0f1 128 + cache 129 + errors 130 + log 131 + } 132 + ''; 103 133 }; 104 134 105 135 services.nats = {