tv ejabberd: make stateDir configurable
This commit is contained in:
parent
1291bb433b
commit
8d6727eaae
@ -115,9 +115,14 @@ in {
|
|||||||
default = {};
|
default = {};
|
||||||
};
|
};
|
||||||
stateDir = mkOption {
|
stateDir = mkOption {
|
||||||
type = types.absolute-pathname;
|
type =
|
||||||
|
types.addCheck
|
||||||
|
types.absolute-pathname
|
||||||
|
(path:
|
||||||
|
hasPrefix "/var/lib/" path &&
|
||||||
|
types.filename.check (removePrefix "/var/lib/" path)
|
||||||
|
);
|
||||||
default = "/var/lib/ejabberd";
|
default = "/var/lib/ejabberd";
|
||||||
readOnly = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
Loading…
Reference in New Issue
Block a user