resolved: Init module

This commit is contained in:
SebastianStork 2025-10-12 01:10:25 +02:00
parent de18f587c7
commit 2ffefb5f30
2 changed files with 26 additions and 13 deletions

View file

@ -0,0 +1,26 @@
{ 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.list = ports;
udp.list = ports;
};
services.resolved = {
enable = true;
dnssec = "allow-downgrade";
dnsovertls = "opportunistic";
};
};
}