NixOS/system/services/stubby.nix

21 lines
417 B
Nix
Raw Normal View History

2024-06-14 19:42:14 +07:00
{ config, lib, pkgs, ... }:
let
cfg = config.profile.services.stubby;
inherit (lib) mkIf;
in
{
config = mkIf cfg.enable {
services.stubby = {
enable = true;
settings = pkgs.stubby.passthru.settingsExample // {
upstream_recursive_servers = [
{
address_data = "1.1.1.1";
tls_auth_name = "cloudflare-dns.com";
}
];
};
};
};
}