Skip to content

Commit

Permalink
documize: introduce state directory
Browse files Browse the repository at this point in the history
  • Loading branch information
elseym committed Oct 4, 2019
1 parent 922de4f commit 93fa16f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nixos/modules/services/web-apps/documize.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ in {
options.services.documize = {
enable = mkEnableOption "Documize Wiki";

stateDirectoryName = mkOption {
type = types.str;
default = "documize";
description = ''
The name of the directory below <filename>/var/lib/private</filename>
where documize runs in and stores, for example, backups.
'';
};

package = mkOption {
type = types.package;
default = pkgs.documize-community;
Expand Down Expand Up @@ -132,6 +141,8 @@ in {
];
Restart = "always";
DynamicUser = "yes";
StateDirectory = cfg.stateDirectoryName;
WorkingDirectory = "/var/lib/${cfg.stateDirectoryName}";
};
};
};
Expand Down

0 comments on commit 93fa16f

Please sign in to comment.