Fix resolved

This commit is contained in:
Nathan McCarty 2022-12-25 20:47:21 -05:00
parent 876d7d2518
commit dba0585555
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
2 changed files with 6 additions and 2 deletions

View File

@ -37,7 +37,7 @@ in {
# Enable resolved
resolved = {
enable = mkEnableOption "resolved";
nameservers = mkOption { default = [ "10.0.0.10" ]; };
nameserver = mkOption { default = "10.0.0.10"; };
domains = mkOption {
default = [ "mccarty.io" "stranger.systems" "local" ];
};

View File

@ -5,7 +5,11 @@ with lib; {
services.resolved = {
enable = true;
domains = config.nathan.services.resolved.domains;
fallbackDns = config.nathan.services.resolved.nameservers;
fallbackDns = [ config.nathan.services.resolved.nameserver ];
extraConfig = ''
[Resolve]
DNS=${config.nathan.services.resolved.nameserver}
'';
};
};
}