mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
23 lines
416 B
Nix
23 lines
416 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
services.mysql = {
|
|
enable = false;
|
|
package = pkgs.mariadb;
|
|
/*
|
|
ensureDatabases = [ "photoprism" ];
|
|
ensureUsers = [
|
|
{
|
|
name = "photoprism";
|
|
ensurePermissions = {
|
|
"photoprism.*" = "ALL PRIVILEGES";
|
|
};
|
|
}
|
|
];
|
|
*/
|
|
};
|
|
|
|
services.postgresql = {
|
|
enable = true;
|
|
package = pkgs.postgresql_15;
|
|
};
|
|
}
|