New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/matomo: point path.geoip2 outside of the nix store. #100617
Conversation
fb2e35d
to
eb28ca2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this and it fixes the issue, downloads DBIP file correctly and can be enabled right after.
path.geoip2 pointed to the nix store which is read-only. Matomo was failing to download a geoip2 database. See NixOS#64759.
@Kiwi @florianjacob could you maybe take a look? Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is needed when setting up geolocation from the UI, but also if one downloads GeoIP2 databases in /var/lib/matomo/misc
(I do that with a custom systemd service but #121145 can certainly work too now).
I marked this as stale due to inactivity. → More info |
LGTM. If noone objects, let's merge this in a few days. |
Thank you! |
path.geoip2 pointed to the nix store which is read only. Matomo fails to
download geoip database. See #64759.
Motivation for this change
By default matomo config path.geoip2 points to the nix store. One can setup geolocalisation from the UI, but the download would fail because the nix store is read-only. See #64759.
This PR changes the path to point to the matomo state directory, allowing one to enable the matomo service and then configure the geolocalisation from the matomo UI without pain.
Note that there are already some efforts to build a geoip database (e.g. #73767), but matomo can also handle it for simpler set-ups.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)