Unverified Commit d25e5e21 authored by TQ Hirsch's avatar TQ Hirsch Committed by Nick Cao
Browse files

nixos/powerdns, nixos/pdns-recurser: Symlink configuration into /etc

This places a symlink to the running configuration where the admin
tools expect it, allowing users to control the powerdns server or
recursor without manually specifying a config file.
parent 64e3b623
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -159,6 +159,8 @@ in {

  config = mkIf cfg.enable {

    environment.etc."powerdns-recursor".source = configDir;

    services.pdns-recursor.settings = mkDefaultAttrs {
      local-address = cfg.dns.address;
      local-port    = cfg.dns.port;
+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ in {

  config = mkIf cfg.enable {

    environment.etc.powerdns.source = finalConfigDir;

    systemd.packages = [ pkgs.pdns ];

    systemd.services.pdns = {