huge refactoring

This commit is contained in:
chloe 2024-08-12 15:56:45 +02:00
parent fffcee128e
commit 7a2fba99cd
30 changed files with 246 additions and 201 deletions

View file

@ -0,0 +1,21 @@
{pkgs, config, ...} :
{
services.mysql = {
enable = true;
package = pkgs.mariadb;
ensureDatabases = [ "photoprism" ];
ensureUsers = [
{
name = "photoprism";
ensurePermissions = {
"photoprism.*" = "ALL PRIVILEGES";
};
}
];
};
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;
};
}