nixify loki config
This commit is contained in:
parent
b482fbc2ea
commit
3d8b7cd8ae
5 changed files with 234 additions and 174 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue