From b836b7628106c2adfc7ae43c99fda252700b3090 Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Tue, 4 Mar 2025 14:52:52 +0100 Subject: [PATCH] Ensure working directory exists for Bookwyrm systemd unit --- packages/bookwyrm/nixos-module.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bookwyrm/nixos-module.nix b/packages/bookwyrm/nixos-module.nix index 4d9d4d6..6516773 100644 --- a/packages/bookwyrm/nixos-module.nix +++ b/packages/bookwyrm/nixos-module.nix @@ -12,7 +12,8 @@ with pkgs . kernelmaft ; [Service] ExecStart=${bookwyrm}/bin/bookwyrm - WorkingDirectory=/var/lib/bookwyrm + StateDirectory=bookwyrm + WorkingDirectory=$STATE_DIRECTORY '' ; } ; } ;