nixify loki config

This commit is contained in:
Reid 2025-01-10 18:24:03 -08:00
parent b482fbc2ea
commit 3d8b7cd8ae
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
5 changed files with 234 additions and 174 deletions

View file

@ -16,32 +16,30 @@ in {
};
config = mkIf cfg.enable {
services = {
matomo = {
enable = true;
package = pkgs.matomo-beta;
services.matomo = {
enable = true;
package = pkgs.matomo-beta;
periodicArchiveProcessing = true;
hostname = cfg.domain;
nginx = {
serverAliases = [ cfg.domain ];
enableACME = true;
};
periodicArchiveProcessing = true;
hostname = cfg.domain;
nginx = {
serverAliases = [ cfg.domain ];
enableACME = true;
};
};
# matomo doesn't automatically create the database
# just. make sure its named matomo
mysql = {
ensureDatabases = [ "matomo" ];
ensureUsers = [
{
name = "matomo";
ensurePermissions = {
"matomo.*" = "ALL PRIVILEGES";
};
}
];
};
# matomo doesn't automatically create the database
# just. make sure its named matomo
services.mysql = {
ensureDatabases = [ "matomo" ];
ensureUsers = [
{
name = "matomo";
ensurePermissions = {
"matomo.*" = "ALL PRIVILEGES";
};
}
];
};
};
}