diff options
author | TQ Hirsch <thequux@thequux.com> | 2023-02-25 16:11:53 +0100 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2023-07-01 18:55:50 +0800 |
commit | 64e3b6239b658a7ce1ce316330fe3c7d018da089 (patch) | |
tree | 66ea767008a4a1b57fd776a7d56c2935ad874872 /pkgs/servers/dns | |
parent | 4b69420a322dcaa74e53b23633836df20e890d5b (diff) | |
download | nixlib-64e3b6239b658a7ce1ce316330fe3c7d018da089.tar nixlib-64e3b6239b658a7ce1ce316330fe3c7d018da089.tar.gz nixlib-64e3b6239b658a7ce1ce316330fe3c7d018da089.tar.bz2 nixlib-64e3b6239b658a7ce1ce316330fe3c7d018da089.tar.lz nixlib-64e3b6239b658a7ce1ce316330fe3c7d018da089.tar.xz nixlib-64e3b6239b658a7ce1ce316330fe3c7d018da089.tar.zst nixlib-64e3b6239b658a7ce1ce316330fe3c7d018da089.zip |
pdns, pdns-recurser: Look for configuration in /etc
This allows the respective management tools to find the config file without manually specifying it on each invocation.
Diffstat (limited to 'pkgs/servers/dns')
-rw-r--r-- | pkgs/servers/dns/pdns-recursor/default.nix | 3 | ||||
-rw-r--r-- | pkgs/servers/dns/pdns/default.nix | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/servers/dns/pdns-recursor/default.nix b/pkgs/servers/dns/pdns-recursor/default.nix index aec253d26ed1..c8da5d9de60c 100644 --- a/pkgs/servers/dns/pdns-recursor/default.nix +++ b/pkgs/servers/dns/pdns-recursor/default.nix @@ -21,8 +21,11 @@ stdenv.mkDerivation rec { configureFlags = [ "--enable-reproducible" "--enable-systemd" + "sysconfdir=/etc/powerdns-recursor" ]; + installFlags = [ "sysconfdir=$(out)/etc/powerdns-recursor" ]; + enableParallelBuilding = true; passthru.tests = { diff --git a/pkgs/servers/dns/pdns/default.nix b/pkgs/servers/dns/pdns/default.nix index b41e4df5242a..e998a1e5cf98 100644 --- a/pkgs/servers/dns/pdns/default.nix +++ b/pkgs/servers/dns/pdns/default.nix @@ -69,6 +69,7 @@ stdenv.mkDerivation (finalAttrs: { "--with-libsodium" "--with-sqlite3" "--with-libcrypto=${openssl.dev}" + "sysconfdir=/etc/powerdns" ]; # nix destroy with-modules arguments, when using configureFlags @@ -79,6 +80,11 @@ stdenv.mkDerivation (finalAttrs: { ) ''; + # We want the various utilities to look for the powerdns config in + # /etc/powerdns, but to actually install the sample config file in + # $out + installFlags = [ "sysconfdir=$(out)/etc/powerdns" ]; + enableParallelBuilding = true; doCheck = true; |