dist_dir in wrapper

This commit is contained in:
Zynh Ludwig 2024-12-27 05:28:19 -08:00
parent 3b12d7c7ba
commit 3cf5fa031a

View file

@ -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" ];