mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-19 05:39:34 +01:00
23 lines
751 B
Nix
23 lines
751 B
Nix
|
{ pkgs, config, ... }:
|
||
|
{
|
||
|
sops.secrets.photoprismUser = {};
|
||
|
sops.secrets.photoprismPassword = {};
|
||
|
|
||
|
services.photoprism = {
|
||
|
enable = true;
|
||
|
port = 2342;
|
||
|
originalsPath = "/srv/cloud/photoprism/originals";
|
||
|
settings = {
|
||
|
PHOTOPRISM_ADMIN_USER = config.sops.secrets.photoprismUser;
|
||
|
PHOTOPRISM_ADMIN_PASSWORD = config.sops.secrets.photoprismPassword;
|
||
|
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???";
|
||
|
};
|
||
|
};
|
||
|
}
|