diff options
author | Ben Sima <ben@bsima.me> | 2020-06-01 22:22:13 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-06-02 11:35:19 -0700 |
commit | 78774e835ac0c564cf52a5e6dd0bf22b56761c4d (patch) | |
tree | 942c1a591c2e8792e7bf9b1a16eccbecf52b0efa /Hero/Service.nix | |
parent | 6aa4f1890a4e1327b5eabfb19386c94750223cbe (diff) |
Initialize Hero database
Diffstat (limited to 'Hero/Service.nix')
-rw-r--r-- | Hero/Service.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Hero/Service.nix b/Hero/Service.nix index f0f4227..8bad6d7 100644 --- a/Hero/Service.nix +++ b/Hero/Service.nix @@ -18,6 +18,11 @@ in The port on which herocomics-server will listen for incoming HTTP traffic. ''; }; + dataDir = lib.mkOption { + type = lib.types.path; + default = "/var/lib/hero"; + description = "herocomics-server database directory"; + }; server = lib.mkOption { type = lib.types.package; description = "herocomics-server package to use"; @@ -50,6 +55,7 @@ in Environment = [ "HERO_CLIENT=${cfg.client}/static" "HERO_PORT=${toString cfg.port}" + "HERO_DATA_DIR=${cfg.dataDir}" ]; Type = "simple"; Restart = "on-abort"; |