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