From a3e9cf029687c38691c65c46cee2e7c0512770d0 Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Fri, 7 Mar 2025 13:12:22 +0100 Subject: [PATCH] Create runtime dir when running Bookwyrm systemd unit --- packages/bookwyrm/nixos-module.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bookwyrm/nixos-module.nix b/packages/bookwyrm/nixos-module.nix index 862f16f..7f7e1b7 100644 --- a/packages/bookwyrm/nixos-module.nix +++ b/packages/bookwyrm/nixos-module.nix @@ -15,6 +15,7 @@ with pkgs . kernelmaft ; [Service] ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/ + ExecStartPre=${coreutils-full}/bin/mkdir /run/bookwyrm ExecStart=${bookwyrm}/bin/bookwyrm WorkingDirectory=/var/lib/bookwyrm