Compare commits
No commits in common. "master" and "valefor-setup" have entirely different histories.
master
...
valefor-se
@ -85,7 +85,7 @@ in {
|
|||||||
# Graphics module (../../graphics/default.nix)
|
# Graphics module (../../graphics/default.nix)
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gpuVendor = "amd"; # or "amd" or "intel"
|
gpuVendor = "nvidia"; # or "amd" or "intel"
|
||||||
wayland.enable = true;
|
wayland.enable = true;
|
||||||
vulkan.enable = true;
|
vulkan.enable = true;
|
||||||
};
|
};
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
# Core networking module (see ../../networking/core.nix)
|
# Core networking module (see ../../networking/core.nix)
|
||||||
network = {
|
network = {
|
||||||
firewall.enable = true;
|
firewall.enable = true;
|
||||||
networkManager.enable = true;
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# DNS module (see ../../networking/dns.nix)
|
# DNS module (see ../../networking/dns.nix)
|
||||||
|
@ -98,12 +98,34 @@ in {
|
|||||||
})
|
})
|
||||||
|
|
||||||
(lib.mkIf cfg.technitium.enable {
|
(lib.mkIf cfg.technitium.enable {
|
||||||
services.technitium-dns-server = {
|
systemd.services.technitium-dns = {
|
||||||
enable = true;
|
description = "Technitium DNS Server";
|
||||||
openFirewall = true;
|
wantedBy = ["multi-user.target"];
|
||||||
firewallTCPPorts = [53 5380 53443];
|
|
||||||
firewallUDPPorts = [53];
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.technitium}/bin/dns-server-start.sh";
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Environment configuration
|
||||||
|
environment =
|
||||||
|
{
|
||||||
|
DNS_LISTEN_ADDRESS = cfg.technitium.settings.address;
|
||||||
|
DNS_LISTEN_PORT = toString cfg.technitium.settings.port;
|
||||||
|
}
|
||||||
|
// lib.mapAttrs' (
|
||||||
|
name: value:
|
||||||
|
lib.nameValuePair "DNS_${lib.toUpper name}" (toString value)
|
||||||
|
)
|
||||||
|
cfg.technitium.settings.extraOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall = {
|
||||||
|
allowedTCPPorts = [53 cfg.technitium.settings.port];
|
||||||
|
allowedUDPPorts = [53 cfg.technitium.settings.port];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [pkgs.technitium];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user