nsd: add stateDir option to nsd config.
Previously, it was hardcoded to /var/lib/nsd, which remains the default value.
This commit is contained in:
parent
e74894146a
commit
116d999001
|
@ -6,7 +6,7 @@ let
|
||||||
cfg = config.services.nsd;
|
cfg = config.services.nsd;
|
||||||
|
|
||||||
username = "nsd";
|
username = "nsd";
|
||||||
stateDir = "/var/lib/nsd";
|
stateDir = cfg.stateDir;
|
||||||
pidFile = stateDir + "/var/nsd.pid";
|
pidFile = stateDir + "/var/nsd.pid";
|
||||||
|
|
||||||
# build nsd with the options needed for the given config
|
# build nsd with the options needed for the given config
|
||||||
|
@ -411,6 +411,14 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
stateDir = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "/var/lib/nsd";
|
||||||
|
description = ''
|
||||||
|
Directory at which to store NSD state.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
zoneStats = mkOption {
|
zoneStats = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
|
|
Loading…
Reference in New Issue