diff options
author | Christoph Hrdinka <c.github@hrdinka.at> | 2017-12-28 14:29:52 +0100 |
---|---|---|
committer | Christoph Hrdinka <c.github@hrdinka.at> | 2017-12-28 14:34:06 +0100 |
commit | 3e14b2826b1a33153001578fa8c8ed1aedef85b4 (patch) | |
tree | 1af68d0b0d51578aeb5ced99f938d98280def7ea /nixos/modules/services/networking/nsd.nix | |
parent | f00c17e927b462284a870d64443dc537a94f7ece (diff) |
nsd module: make use of NSDs configFile option
Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
Diffstat (limited to 'nixos/modules/services/networking/nsd.nix')
-rw-r--r-- | nixos/modules/services/networking/nsd.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/nsd.nix b/nixos/modules/services/networking/nsd.nix index c8b8ed547ebb..4241e6fcceab 100644 --- a/nixos/modules/services/networking/nsd.nix +++ b/nixos/modules/services/networking/nsd.nix @@ -11,6 +11,8 @@ let # build nsd with the options needed for the given config nsdPkg = pkgs.nsd.override { + configFile = "${configFile}/nsd.conf"; + bind8Stats = cfg.bind8Stats; ipv6 = cfg.ipv6; ratelimit = cfg.ratelimit.enable; @@ -788,6 +790,8 @@ in config = mkIf cfg.enable { + environment.systemPackages = [ nsdPkg ]; + users.extraGroups = singleton { name = username; gid = config.ids.gids.nsd; @@ -845,4 +849,6 @@ in }; }; + + meta.maintainers = with lib.maintainers; [ hrdinka ]; } |