mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 04:34:25 +01:00
14 lines
338 B
Nix
14 lines
338 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.custom.services.resolved.enable = lib.mkEnableOption "" // {
|
|
default = config.systemd.network.enable;
|
|
};
|
|
|
|
config = lib.mkIf config.custom.services.resolved.enable {
|
|
services.resolved = {
|
|
enable = true;
|
|
dnssec = "allow-downgrade";
|
|
dnsovertls = "opportunistic";
|
|
};
|
|
};
|
|
}
|