update dns

This commit is contained in:
Henry Hiles 2026-04-08 12:39:44 -04:00
commit e411c8b32a
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 38 additions and 16 deletions

View file

@ -1,10 +1,10 @@
{
systemd.timers.reboot = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "*-*-* 02:00:00";
Persistent = true;
Unit = "reboot.target";
};
};
# systemd.timers.reboot = {
# wantedBy = [ "timers.target" ];
# timerConfig = {
# OnCalendar = "*-*-* 02:00:00";
# Persistent = true;
# Unit = "reboot.target";
# };
# };
}

16
flake.lock generated
View file

@ -355,11 +355,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1775229181,
"narHash": "sha256-TZTrZ2aSY/L5n14Gsf+Nu20wPxWr1Fwa4tRQFyIjalo=",
"lastModified": 1775587286,
"narHash": "sha256-XLEqF6CRWna1V6JIF3lcMJl0+MuUyIydtO/Kw0feV9E=",
"ref": "quad/chore/simplify-nix",
"rev": "7bbe31adeea8090e2b9b05d37dc943f12ebee004",
"revCount": 6420,
"rev": "18542fe3eaf6338b970050efef722b3c38cb898a",
"revCount": 6443,
"type": "git",
"url": "https://forgejo.ellis.link/Henry-Hiles/continuwuity"
},
@ -1666,11 +1666,11 @@
]
},
"locked": {
"lastModified": 1775410379,
"narHash": "sha256-O3Rb6JeHeUPxvPVzX4aEzYn7ysmfbCkAvOQj1LlSsWA=",
"lastModified": 1775579286,
"narHash": "sha256-gmwocJ1dVQf3Dr3Y6kAHm4bMQmnnS0syauTrpzyb+Xk=",
"ref": "refs/heads/main",
"rev": "aac843d79372dc210ae36fc4a674628440f353a6",
"revCount": 431,
"rev": "624127f3a837b913ab7a0dcace7ba2aa260f2fb9",
"revCount": 448,
"submodules": true,
"type": "git",
"url": "https://git.federated.nexus/Henry-Hiles/nexus"

19
modules/graphical/dns.nix Normal file
View file

@ -0,0 +1,19 @@
{ lib, ... }:
{
services.dnsproxy = {
enable = true;
flags = [
"--cache"
"--cache-size 64M"
"--cache-optimistic"
];
settings = rec {
upstream = [ "https://base.dns.mullvad.net/dns-query" ];
listen-addrs = [ "127.0.0.1" ];
fallback = [ "1.1.1.1" ];
bootstrap = fallback;
};
};
environment.etc."resolv.conf".text = lib.mkForce "nameserver 127.0.0.1";
}

3
modules/server/dns.nix Normal file
View file

@ -0,0 +1,3 @@
{
services.technitium-dns-server.enable.enable = true;
}