From 95ae572dcb594b9941e39024ceee009b8b3f08e6 Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Fri, 7 Mar 2025 13:19:18 +0100 Subject: [PATCH] Use RuntimeDirectory option in Bookwyrm unit to create dir for socket --- packages/bookwyrm/nixos-module.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bookwyrm/nixos-module.nix b/packages/bookwyrm/nixos-module.nix index 7f7e1b7..5ba635b 100644 --- a/packages/bookwyrm/nixos-module.nix +++ b/packages/bookwyrm/nixos-module.nix @@ -15,7 +15,6 @@ 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 @@ -23,6 +22,9 @@ with pkgs . kernelmaft ; # Creates /var/lib/bookwyrm directory StateDirectory=bookwyrm + # Creates /run/bookwyrm directory + RuntimeDirectory=bookwyrm + User=bookwyrm Group=bookwyrm