Add hardened systemd-resolved DNS with boot verification and journal recovery, enabled only on specific hosts: - hl-bigbox1, hl-bigbox2 (experienced DNS resilience issues) - hl-minipc1, hl-minipc2, hl-minipc3 (minipc cluster) - hl-fwdesk, hl-fws1 (desktop/workstation nodes) Changes: 1. New module: modules/nixos/common/dns/default.nix - systemd-resolved with LLMNR fallback and DNSSEC tolerance - Hardened journald with persistent storage and auto-recovery - Boot-time DNS verification service with 5 retries - Systemd watchdog for automatic reboot on DNS failure 2. Default to false, enabled explicitly on target hosts only 3. Updated host configs to enable dns resilience module
21 lines
319 B
Nix
21 lines
319 B
Nix
{ ... }:
|
|
{
|
|
imports = [
|
|
./hardware
|
|
./containers
|
|
./core.nix
|
|
./networking.nix
|
|
./user.nix
|
|
./fonts.nix
|
|
./ssh-server.nix
|
|
./qemu.nix
|
|
./binary-cache.nix
|
|
./pritunl
|
|
./dns
|
|
];
|
|
config = {
|
|
environment.sessionVariables.EDITOR = "vi";
|
|
environment.localBinInPath = true;
|
|
};
|
|
}
|