From 3cf5fa031ab35a0e3c53cad341eb9bc95d19f0dc Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Fri, 27 Dec 2024 05:28:19 -0800 Subject: [PATCH] dist_dir in wrapper --- modules/nyazoom.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/nyazoom.nix b/modules/nyazoom.nix index ba91989..12a7ebd 100644 --- a/modules/nyazoom.nix +++ b/modules/nyazoom.nix @@ -12,8 +12,10 @@ in config = lib.mkIf cfg.enable { systemd.services.nyazoom = { - script = '' - DATABASE_URL="sqlite:///var/lib/nyazoom/data" ${lib.getExe nyazoom} + script = /* bash */'' + export DATABASE_URL="sqlite:///var/lib/nyazoom/data" + export DIST_DIR="${nyazoom}/dist" + ${lib.getExe nyazoom} ''; wantedBy = [ "network.target" ]; wants = [ "network.target" ];