2024-08-12 15:56:45 +02:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
{
|
2024-08-12 17:52:23 +02:00
|
|
|
sops.secrets.photoprismAdmin = { };
|
2024-08-12 17:50:48 +02:00
|
|
|
sops.secrets.photoprismPassword = { };
|
2024-08-12 15:56:45 +02:00
|
|
|
|
|
|
|
services.photoprism = {
|
|
|
|
enable = true;
|
|
|
|
port = 2342;
|
|
|
|
originalsPath = "/srv/cloud/photoprism/originals";
|
|
|
|
settings = {
|
2024-08-12 17:50:48 +02:00
|
|
|
PHOTOPRISM_ADMIN_USER = "admin";
|
2024-08-12 15:56:45 +02:00
|
|
|
PHOTOPRISM_DEFAULT_LOCALE = "fr";
|
|
|
|
PHOTOPRISM_DATABASE_DRIVER = "mysql";
|
|
|
|
PHOTOPRISM_DATABASE_NAME = "photoprism";
|
|
|
|
PHOTOPRISM_DATABASE_SERVER = "/run/mysqld/mysqld.sock";
|
|
|
|
PHOTOPRISM_DATABASE_USER = "photoprism";
|
|
|
|
PHOTOPRISM_SITE_URL = "http://photos.hypervirtual.world";
|
|
|
|
PHOTOPRISM_SITE_TITLE = "hyperreal photoprism???";
|
|
|
|
};
|
2024-08-12 17:50:48 +02:00
|
|
|
passwordFile = config.sops.secrets.photoprismPassword.path;
|
2024-08-12 15:56:45 +02:00
|
|
|
};
|
|
|
|
}
|