feat: add plausible analytics for blog

This commit is contained in:
oddlama 2024-09-18 16:48:48 +02:00
parent 3383fd9a14
commit c30ec709a7
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
16 changed files with 277 additions and 91 deletions

View file

@ -0,0 +1,23 @@
{pkgs, ...}: {
services.postgresql = {
enable = true;
package = pkgs.postgresql_16_jit;
# Doesn't work with plausible, since it wants to connect as the postgres
# for some (probably unecessary) reason.
#
# authentication = lib.mkForce ''
# #type database DBuser auth-method optional_ident_map
# local sameuser all peer map=superuser_map
# local all postgres peer map=superuser_map
# '';
#
# identMap = ''
# # ArbitraryMapName systemUser DBUser
# superuser_map root postgres
# superuser_map postgres postgres
# # Let other names login as themselves
# superuser_map /^(.*)$ \1
# '';
};
}