mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-19 13:49:33 +01:00
22 lines
383 B
Nix
22 lines
383 B
Nix
|
{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;
|
||
|
};
|
||
|
}
|