work on photoprism

This commit is contained in:
chaos 2024-12-16 15:13:23 +00:00
parent 854853f0da
commit a081b37b8c

View file

@ -48,7 +48,7 @@ in {
} }
// (lib.mapAttrs (_: toString) cfg.settings); // (lib.mapAttrs (_: toString) cfg.settings);
in in
pkgs.writeShellScript "photoprism-manage" '' pkgs.writeShellScriptBin "photoprism-manage" ''
set -o allexport set -o allexport
${lib.toShellVars env} ${lib.toShellVars env}
eval "$(${config.systemd.package}/bin/systemctl show -pUID,MainPID photoprism.service | ${pkgs.gnused}/bin/sed "s/UID/ServiceUID/")" eval "$(${config.systemd.package}/bin/systemctl show -pUID,MainPID photoprism.service | ${pkgs.gnused}/bin/sed "s/UID/ServiceUID/")"