mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-18 21:29:33 +01:00
23 lines
717 B
Nix
23 lines
717 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
sops.secrets.photoprismAdmin = { };
|
|
sops.secrets.photoprismPassword = { };
|
|
|
|
services.photoprism = {
|
|
enable = true;
|
|
port = 2342;
|
|
originalsPath = "/srv/cloud/photoprism/originals";
|
|
settings = {
|
|
PHOTOPRISM_ADMIN_USER = "admin";
|
|
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???";
|
|
};
|
|
passwordFile = config.sops.secrets.photoprismPassword.path;
|
|
};
|
|
}
|