rm photoprism
This commit is contained in:
parent
e034b6f087
commit
f7c2cadaf8
2
data.nix
2
data.nix
@ -15,8 +15,6 @@ rec {
|
|||||||
|
|
||||||
jakstpub = 505;
|
jakstpub = 505;
|
||||||
|
|
||||||
photoprism = 507;
|
|
||||||
|
|
||||||
remote-builder = 508;
|
remote-builder = 508;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ in
|
|||||||
grafana-oidc.file = ../../secrets/grafana.jakstys.lt/oidc.age;
|
grafana-oidc.file = ../../secrets/grafana.jakstys.lt/oidc.age;
|
||||||
letsencrypt-account-key.file = ../../secrets/letsencrypt/account.key.age;
|
letsencrypt-account-key.file = ../../secrets/letsencrypt/account.key.age;
|
||||||
vaultwarden-secrets-env.file = ../../secrets/vaultwarden/secrets.env.age;
|
vaultwarden-secrets-env.file = ../../secrets/vaultwarden/secrets.env.age;
|
||||||
photoprism-admin-passwd.file = ../../secrets/photoprism/admin_password.age;
|
|
||||||
synapse-jakstys-signing-key.file = ../../secrets/synapse/jakstys_lt_signing_key.age;
|
synapse-jakstys-signing-key.file = ../../secrets/synapse/jakstys_lt_signing_key.age;
|
||||||
synapse-registration-shared-secret.file = ../../secrets/synapse/registration_shared_secret.age;
|
synapse-registration-shared-secret.file = ../../secrets/synapse/registration_shared_secret.age;
|
||||||
synapse-macaroon-secret-key.file = ../../secrets/synapse/macaroon_secret_key.age;
|
synapse-macaroon-secret-key.file = ../../secrets/synapse/macaroon_secret_key.age;
|
||||||
@ -482,16 +481,6 @@ in
|
|||||||
subnetCIDR = myData.subnets.tailscale.cidr;
|
subnetCIDR = myData.subnets.tailscale.cidr;
|
||||||
};
|
};
|
||||||
|
|
||||||
photoprism = {
|
|
||||||
enable = true;
|
|
||||||
uidgid = myData.uidgid.photoprism;
|
|
||||||
paths = {
|
|
||||||
"M-Camera" = "/home/motiejus/annex2/M-Active";
|
|
||||||
"Pictures" = "/home/motiejus/annex2/Pictures";
|
|
||||||
};
|
|
||||||
passwordFile = config.age.secrets.photoprism-admin-passwd.path;
|
|
||||||
};
|
|
||||||
|
|
||||||
nsd-acme =
|
nsd-acme =
|
||||||
let
|
let
|
||||||
accountKey = config.age.secrets.letsencrypt-account-key.path;
|
accountKey = config.age.secrets.letsencrypt-account-key.path;
|
||||||
@ -530,7 +519,6 @@ in
|
|||||||
"bitwarden_rs"
|
"bitwarden_rs"
|
||||||
"matrix-synapse"
|
"matrix-synapse"
|
||||||
"private/soju"
|
"private/soju"
|
||||||
"private/photoprism"
|
|
||||||
];
|
];
|
||||||
patterns = [ "- gitea/data/repo-archive/" ];
|
patterns = [ "- gitea/data/repo-archive/" ];
|
||||||
backup_at = "*-*-* 01:00:01 UTC";
|
backup_at = "*-*-* 01:00:01 UTC";
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
./node_exporter
|
./node_exporter
|
||||||
./nsd-acme
|
./nsd-acme
|
||||||
./ping_exporter
|
./ping_exporter
|
||||||
./photoprism
|
|
||||||
./postfix
|
./postfix
|
||||||
./remote-builder
|
./remote-builder
|
||||||
./ssh8022
|
./ssh8022
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.mj.services.photoprism;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.mj.services.photoprism = with lib.types; {
|
|
||||||
enable = lib.mkEnableOption "enable photoprism";
|
|
||||||
uidgid = lib.mkOption { type = int; };
|
|
||||||
paths = lib.mkOption { type = attrsOf str; };
|
|
||||||
passwordFile = lib.mkOption { type = str; };
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
services.photoprism = {
|
|
||||||
inherit (cfg) passwordFile;
|
|
||||||
enable = true;
|
|
||||||
originalsPath = "/var/cache/photoprism/userdata";
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
tmpfiles.rules = [ "d /var/cache/photoprism/userdata 0700 photoprism photoprism -" ];
|
|
||||||
services.photoprism.serviceConfig = {
|
|
||||||
ProtectHome = lib.mkForce "tmpfs";
|
|
||||||
CacheDirectory = "photoprism";
|
|
||||||
BindPaths = lib.mapAttrsToList (
|
|
||||||
name: srcpath: "${srcpath}:/var/cache/photoprism/userdata/${name}"
|
|
||||||
) cfg.paths;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users = {
|
|
||||||
groups.photoprism.gid = cfg.uidgid;
|
|
||||||
users.photoprism = {
|
|
||||||
group = "photoprism";
|
|
||||||
uid = cfg.uidgid;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -48,7 +48,6 @@ in
|
|||||||
"secrets/root_server_passwd_hash.age"
|
"secrets/root_server_passwd_hash.age"
|
||||||
|
|
||||||
"secrets/headscale/oidc_client_secret2.age"
|
"secrets/headscale/oidc_client_secret2.age"
|
||||||
"secrets/photoprism/admin_password.age"
|
|
||||||
"secrets/grafana.jakstys.lt/oidc.age"
|
"secrets/grafana.jakstys.lt/oidc.age"
|
||||||
"secrets/vaultwarden/secrets.env.age"
|
"secrets/vaultwarden/secrets.env.age"
|
||||||
"secrets/letsencrypt/account.key.age"
|
"secrets/letsencrypt/account.key.age"
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user