From fbaab723d2f78ed5dc946622578f1501948de63f Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Mon, 10 Mar 2025 20:07:54 +0100 Subject: [PATCH] Fix config symlink in Bookwyrm systemd unit --- packages/bookwyrm/nixos-module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bookwyrm/nixos-module.nix b/packages/bookwyrm/nixos-module.nix index eeb6edf..07ba5f3 100644 --- a/packages/bookwyrm/nixos-module.nix +++ b/packages/bookwyrm/nixos-module.nix @@ -15,7 +15,7 @@ with pkgs . kernelmaft ; [Service] # 'initdb' fails harmlessly if it has been run on the database before - ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/.env /etc/bookwyrm/config.env + ExecStartPre=${coreutils-full}/bin/ln -sf /etc/bookwyrm/config.env /var/lib/bookwyrm/.env ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/ ExecStartPre=${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py migrate ExecStartPre=-${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py initdb