Fix resolved
This commit is contained in:
parent
876d7d2518
commit
dba0585555
|
@ -37,7 +37,7 @@ in {
|
||||||
# Enable resolved
|
# Enable resolved
|
||||||
resolved = {
|
resolved = {
|
||||||
enable = mkEnableOption "resolved";
|
enable = mkEnableOption "resolved";
|
||||||
nameservers = mkOption { default = [ "10.0.0.10" ]; };
|
nameserver = mkOption { default = "10.0.0.10"; };
|
||||||
domains = mkOption {
|
domains = mkOption {
|
||||||
default = [ "mccarty.io" "stranger.systems" "local" ];
|
default = [ "mccarty.io" "stranger.systems" "local" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,7 +5,11 @@ with lib; {
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domains = config.nathan.services.resolved.domains;
|
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}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue