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