mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
26 lines
452 B
Nix
26 lines
452 B
Nix
{ config, lib, ... }:
|
|
let
|
|
ports = [
|
|
53
|
|
5353
|
|
5355
|
|
];
|
|
in
|
|
{
|
|
options.custom.services.resolved.enable = lib.mkEnableOption "" // {
|
|
default = config.systemd.network.enable;
|
|
};
|
|
|
|
config = lib.mkIf config.custom.services.resolved.enable {
|
|
meta.ports = {
|
|
tcp = ports;
|
|
udp = ports;
|
|
};
|
|
|
|
services.resolved = {
|
|
enable = true;
|
|
dnssec = "allow-downgrade";
|
|
dnsovertls = "opportunistic";
|
|
};
|
|
};
|
|
}
|