Skip to content

Commit

Permalink
adding database directory for execstart to proceed
Browse files Browse the repository at this point in the history
  • Loading branch information
wiredhikari committed Aug 11, 2022
1 parent 8ab56b6 commit cff9da9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/minimint.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ let
default = "/var/lib/minimint";
description = "The data directory for minimint.";
};
dbDir = mkOption {
type = types.path;
default = "/var/lib/minimint/mint-0.db";
description = "The database directory for minimint.";
};
user = mkOption {
type = types.str;
default = "clightning";
Expand Down Expand Up @@ -71,6 +76,7 @@ in {
};
systemd.tmpfiles.rules = [
"d '${cfg.dataDir}' 0770 ${cfg.user} ${cfg.group} - -"
"d '${cfg.dbDir}' 0770 ${cfg.user} ${cfg.group} - -"
];
systemd.services.minimint = {
wantedBy = [ "multi-user.target" ];
Expand Down

0 comments on commit cff9da9

Please sign in to comment.