summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorColin <colin@uninsane.org>2023-10-24 02:01:29 +0000
committerColin <colin@uninsane.org>2023-11-06 15:38:23 +0000
commit83bf3ed892ca3d97cacd5bf41b67a185622ad971 (patch)
treeab080761846665cacb70b50903f7630f5dc330ec /nixos/modules/services
parent5babd0d512ec88b848924e1f2a1ae5585098ad75 (diff)
trust-dns: 0.23.0 -> 0.24.0
upstream is in the process of renaming to `hickory-dns`. a consequence of this is that the main binary has been renamed from `trust-dns` to `hickory-dns` and the repository has been moved (though for the time being the old repo is still usable on account that it redirects to the new one). see: <https://bluejekyll.github.io/blog/posts/announcing-hickory-dns/>
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/networking/trust-dns.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/trust-dns.nix b/nixos/modules/services/networking/trust-dns.nix
index 4196d124a2ab..758e33f16d38 100644
--- a/nixos/modules/services/networking/trust-dns.nix
+++ b/nixos/modules/services/networking/trust-dns.nix
@@ -54,7 +54,7 @@ in
defaultText = "pkgs.trust-dns";
description = mdDoc ''
Trust-dns package to use.
- Only `bin/trust-dns` need be provided: the other trust-dns utilities (client and resolver) are not needed.
+ The package must provide `meta.mainProgram` which names the server binary; any other utilities (client, resolver) are not needed.
'';
};
quiet = mkOption {
@@ -135,7 +135,7 @@ in
flags = (lib.optional cfg.debug "--debug") ++ (lib.optional cfg.quiet "--quiet");
flagsStr = builtins.concatStringsSep " " flags;
in ''
- ${cfg.package}/bin/trust-dns --config ${configFile} ${flagsStr}
+ ${cfg.package}/bin/${cfg.package.meta.mainProgram} --config ${configFile} ${flagsStr}
'';
Type = "simple";
Restart = "on-failure";