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
34 lines
667 B
Nix
34 lines
667 B
Nix
{ lib, ... }:
|
|
{
|
|
imports = [
|
|
./services
|
|
./hardware-configuration
|
|
./hardware.nix
|
|
];
|
|
|
|
boot.loader.grub.device = lib.mkForce "/dev/disk/by-id/ata-KINGSTON_SA400S37240G_50026B7785904215";
|
|
programs.nh.clean.extraArgs = "--keep-since 30d --keep 5";
|
|
|
|
skyg = {
|
|
user.enable = true;
|
|
nixos.common = {
|
|
ssh-server.enable = true;
|
|
diagnix.enable = true;
|
|
|
|
dns.enable = true;
|
|
|
|
containers.networks.ipvlanLab = {
|
|
enable = true;
|
|
parent = "enp3s0";
|
|
};
|
|
cachePush.enable = false;
|
|
cacheReceive.enable = true;
|
|
};
|
|
|
|
networkDrives = {
|
|
enable = true;
|
|
bigBox2.enable = false;
|
|
};
|
|
};
|
|
}
|