Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bd5b390287d6
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4bd651df48c7
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 5, 2019

  1. documize: introduce state directory

    (cherry picked from commit 93fa16f)
    elseym authored and Ma27 committed Oct 5, 2019
    Copy the full SHA
    4bd651d View commit details
Showing with 11 additions and 0 deletions.
  1. +11 −0 nixos/modules/services/web-apps/documize.nix
11 changes: 11 additions & 0 deletions nixos/modules/services/web-apps/documize.nix
Original file line number Diff line number Diff line change
@@ -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;
@@ -132,6 +141,8 @@ in {
];
Restart = "always";
DynamicUser = "yes";
StateDirectory = cfg.stateDirectoryName;
WorkingDirectory = "/var/lib/${cfg.stateDirectoryName}";
};
};
};