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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|