git.iko.soy/typeable/nixpkgs
on master help sign in
nsd module: make use of NSDs configFile option

Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>

commit3e14b2826b1a33153001578fa8c8ed1aedef85b4 authorChristoph Hrdinka <c.github@hrdinka.at> dateThu 28 Dec 2017, 14:29 (9 years ago) parentf00c17e
1 file changed+6
nixos/modules/services/networking/nsd.nix+6
nixos/modules/services/networking/nsd.nix+6
@@ -11,6 +11,8 @@ let
1111
1212 # build nsd with the options needed for the given config
1313 nsdPkg = pkgs.nsd.override {
14+ configFile = "${configFile}/nsd.conf";
15+
1416 bind8Stats = cfg.bind8Stats;
1517 ipv6 = cfg.ipv6;
1618 ratelimit = cfg.ratelimit.enable;
@@ -788,6 +790,8 @@ in
788790
789791 config = mkIf cfg.enable {
790792
793+ environment.systemPackages = [ nsdPkg ];
794+
791795 users.extraGroups = singleton {
792796 name = username;
793797 gid = config.ids.gids.nsd;
@@ -845,4 +849,6 @@ in
845849 };
846850
847851 };
852+
853+ meta.maintainers = with lib.maintainers; [ hrdinka ];
848854}