update dns
This commit is contained in:
parent
a2739a1e87
commit
e411c8b32a
4 changed files with 38 additions and 16 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
systemd.timers.reboot = {
|
# systemd.timers.reboot = {
|
||||||
wantedBy = [ "timers.target" ];
|
# wantedBy = [ "timers.target" ];
|
||||||
timerConfig = {
|
# timerConfig = {
|
||||||
OnCalendar = "*-*-* 02:00:00";
|
# OnCalendar = "*-*-* 02:00:00";
|
||||||
Persistent = true;
|
# Persistent = true;
|
||||||
Unit = "reboot.target";
|
# Unit = "reboot.target";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16
flake.lock
generated
16
flake.lock
generated
|
|
@ -355,11 +355,11 @@
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775229181,
|
"lastModified": 1775587286,
|
||||||
"narHash": "sha256-TZTrZ2aSY/L5n14Gsf+Nu20wPxWr1Fwa4tRQFyIjalo=",
|
"narHash": "sha256-XLEqF6CRWna1V6JIF3lcMJl0+MuUyIydtO/Kw0feV9E=",
|
||||||
"ref": "quad/chore/simplify-nix",
|
"ref": "quad/chore/simplify-nix",
|
||||||
"rev": "7bbe31adeea8090e2b9b05d37dc943f12ebee004",
|
"rev": "18542fe3eaf6338b970050efef722b3c38cb898a",
|
||||||
"revCount": 6420,
|
"revCount": 6443,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://forgejo.ellis.link/Henry-Hiles/continuwuity"
|
"url": "https://forgejo.ellis.link/Henry-Hiles/continuwuity"
|
||||||
},
|
},
|
||||||
|
|
@ -1666,11 +1666,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775410379,
|
"lastModified": 1775579286,
|
||||||
"narHash": "sha256-O3Rb6JeHeUPxvPVzX4aEzYn7ysmfbCkAvOQj1LlSsWA=",
|
"narHash": "sha256-gmwocJ1dVQf3Dr3Y6kAHm4bMQmnnS0syauTrpzyb+Xk=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "aac843d79372dc210ae36fc4a674628440f353a6",
|
"rev": "624127f3a837b913ab7a0dcace7ba2aa260f2fb9",
|
||||||
"revCount": 431,
|
"revCount": 448,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.federated.nexus/Henry-Hiles/nexus"
|
"url": "https://git.federated.nexus/Henry-Hiles/nexus"
|
||||||
|
|
|
||||||
19
modules/graphical/dns.nix
Normal file
19
modules/graphical/dns.nix
Normal 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
3
modules/server/dns.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
services.technitium-dns-server.enable.enable = true;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue