This commit is contained in:
Tim Schubert 2020-12-28 19:38:36 +01:00
parent e1c562191b
commit 186fb9d017
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13
6 changed files with 44 additions and 48 deletions

View file

@ -5,11 +5,6 @@ let
in {
options.dadada.networking = {
useLocalResolver = mkEnableOption "Enable local caching name server";
domain = mkOption {
type = with types; nullOr str;
description = "Network domain name";
default = null;
};
wanInterfaces = mkOption {
type = with types; listOf str;
description = "WAN network interfaces";
@ -24,7 +19,6 @@ in {
};
config = {
networking.domain = cfg.domain;
networking.resolvconf.useLocalResolver = mkIf cfg.useLocalResolver true;
services.unbound = mkIf cfg.useLocalResolver {
enable = true;