forked from Zynh0722/permafrost
dist_dir in wrapper
This commit is contained in:
parent
3b12d7c7ba
commit
3cf5fa031a
1 changed files with 4 additions and 2 deletions
|
@ -12,8 +12,10 @@ in
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
systemd.services.nyazoom = {
|
systemd.services.nyazoom = {
|
||||||
script = ''
|
script = /* bash */''
|
||||||
DATABASE_URL="sqlite:///var/lib/nyazoom/data" ${lib.getExe nyazoom}
|
export DATABASE_URL="sqlite:///var/lib/nyazoom/data"
|
||||||
|
export DIST_DIR="${nyazoom}/dist"
|
||||||
|
${lib.getExe nyazoom}
|
||||||
'';
|
'';
|
||||||
wantedBy = [ "network.target" ];
|
wantedBy = [ "network.target" ];
|
||||||
wants = [ "network.target" ];
|
wants = [ "network.target" ];
|
||||||
|
|
Loading…
Reference in a new issue