diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2024-03-08 15:34:00 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2024-03-08 15:34:00 +0100 |
commit | 67c1193fab6649cc788641411a64e34ca6ab3672 (patch) | |
tree | 1ffaba443d200d82a4735a1f33f483d333e95e03 | |
parent | 60f604495c9a12d97147d92ba7df9ab979e8ebf5 (diff) | |
download | nixlib-67c1193fab6649cc788641411a64e34ca6ab3672.tar nixlib-67c1193fab6649cc788641411a64e34ca6ab3672.tar.gz nixlib-67c1193fab6649cc788641411a64e34ca6ab3672.tar.bz2 nixlib-67c1193fab6649cc788641411a64e34ca6ab3672.tar.lz nixlib-67c1193fab6649cc788641411a64e34ca6ab3672.tar.xz nixlib-67c1193fab6649cc788641411a64e34ca6ab3672.tar.zst nixlib-67c1193fab6649cc788641411a64e34ca6ab3672.zip |
nixos/unbound: disable checkconf when remote-control is used
Closes #293001
-rw-r--r-- | nixos/modules/services/networking/unbound.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/unbound.nix b/nixos/modules/services/networking/unbound.nix index 8438e472e11e..17c6789827b9 100644 --- a/nixos/modules/services/networking/unbound.nix +++ b/nixos/modules/services/networking/unbound.nix @@ -76,12 +76,13 @@ in { checkconf = mkOption { type = types.bool; - default = !cfg.settings ? include; - defaultText = "!config.services.unbound.settings ? include"; + default = !cfg.settings ? include && !cfg.settings ? remote-control; + defaultText = "!services.unbound.settings ? include && !services.unbound.settings ? remote-control"; description = lib.mdDoc '' Wether to check the resulting config file with unbound checkconf for syntax errors. - If settings.include is used, then this options is disabled, as the import can likely not be resolved at build time. + If settings.include is used, this options is disabled, as the import can likely not be accessed at build time. + If settings.remote-control is used, this option is disabled, too as the control-key-file, server-cert-file and server-key-file cannot be accessed at build time. ''; }; |