16 lines
393 B
Nix
16 lines
393 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib; {
|
|
config = mkIf config.nathan.services.resolved.enable {
|
|
services.resolved = {
|
|
enable = true;
|
|
domains = config.nathan.services.resolved.domains;
|
|
fallbackDns = [ config.nathan.services.resolved.nameserver ];
|
|
extraConfig = ''
|
|
[Resolve]
|
|
DNS=${config.nathan.services.resolved.nameserver}
|
|
'';
|
|
};
|
|
};
|
|
}
|