System/modules/linux/services/resolved.nix

16 lines
393 B
Nix
Raw Normal View History

2022-12-25 20:17:36 -05:00
{ config, lib, pkgs, ... }:
with lib; {
config = mkIf config.nathan.services.resolved.enable {
services.resolved = {
enable = true;
domains = config.nathan.services.resolved.domains;
2022-12-25 20:47:21 -05:00
fallbackDns = [ config.nathan.services.resolved.nameserver ];
extraConfig = ''
[Resolve]
DNS=${config.nathan.services.resolved.nameserver}
'';
2022-12-25 20:17:36 -05:00
};
};
}