{ lib, modulesPath, ... }: { services.photoprism = { enable = true; #default port: 2342 settings = { PHOTOPRISM_DEFAULT_LOCALE = "fr"; PHOTOPRISM_ADMIN_USERNAME = "admin"; PHOTOPRISM_SITE_CAPTION = "PhotoPrism"; }; originalsPath = "/photoprism/photos"; importPath = "/photoprism/imports"; address = "localhost"; passwordFile = "/passwords/photoprism"; }; services.nginx.virtualHosts."photoprism.rz01.infra.dgnum.eu" = { enableACME = true; forceSSL = true; serverAliases = []; locations."/".proxyPass = "http://localhost:2342/"; }; }