diff options
author | Alan Pearce | 2025-01-30 13:31:23 +0100 |
---|---|---|
committer | Alan Pearce | 2025-01-30 13:31:23 +0100 |
commit | 2216893f83b2576f173638bb81e955f56103bf8c (patch) | |
tree | 375ca9a2babd36b35bdaa56a9402ca6215842b90 /system/linde.nix | |
parent | 9be2f1c5b616b3fd022b290b7959db9d91359710 (diff) | |
download | nixfiles-2216893f83b2576f173638bb81e955f56103bf8c.tar.lz nixfiles-2216893f83b2576f173638bb81e955f56103bf8c.tar.zst nixfiles-2216893f83b2576f173638bb81e955f56103bf8c.zip |
linde: remove photoprism
Diffstat (limited to 'system/linde.nix')
-rw-r--r-- | system/linde.nix | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/system/linde.nix b/system/linde.nix index 4726777a..20d71e55 100644 --- a/system/linde.nix +++ b/system/linde.nix @@ -44,8 +44,6 @@ in dex.file = ../secrets/dex.age; powerdns.file = ../secrets/powerdns.age; redis-website.file = ../secrets/redis-website.age; - photoprism.file = ../secrets/photoprism.age; - cifs-photoprism.file = ../secrets/cifs-photoprism.age; cifs-paperless.file = ../secrets/cifs-paperless.age; cifs-transmission.file = ../secrets/cifs-transmission.age; golink = let golink = config.services.golink; in { @@ -656,21 +654,6 @@ in file_server ''; }; - "photos.alanpearce.eu" = - let - srv = config.services.photoprism; - in - { - useACMEHost = "alanpearce.eu"; - extraConfig = '' - encode zstd gzip - ${security-headers {}} - reverse_proxy ${srv.address}:${toString srv.port} - handle_errors { - respond "{err.status_code} {err.status_text}" - } - ''; - }; }; }; systemd.services.caddy.serviceConfig = { @@ -1047,51 +1030,6 @@ in }; }; - fileSystems."/srv/photoprism" = { - device = "//u439959-sub1.your-storagebox.de/u439959-sub1"; - fsType = "smb3"; - options = - let - # prevents hanging on network split - automount_opts = [ - "x-systemd.automount" - "noauto" - "x-systemd.idle-timeout=1h" - "x-systemd.mount-timeout=5s" - ]; - uid = 64600; - in - automount_opts ++ [ - "credentials=${config.age.secrets.cifs-photoprism.path}" - "seal" - "multichannel" - "nobrl" # needed for sqlite - "forceuid" - "forcegid" - "uid=${toString uid}" - "gid=${toString uid}" - ]; - }; - services.photoprism = { - enable = true; - passwordFile = config.age.secrets.photoprism.path; - originalsPath = "/srv/photoprism/originals"; - importPath = "/srv/photoprism/import"; - settings = { - PHOTOPRISM_SITE_URL = "https://photos.alanpearce.eu"; - PHOTOPRISM_SITE_CAPTION = "Alan‘s Photos"; - PHOTOPRISM_DISABLE_TLS = "true"; - PHOTOPRISM_SIDECAR_PATH = "/srv/photoprism/sidecar"; - PHOTOPRISM_SPONSOR = "true"; - }; - }; - systemd.services.photoprism = { - unitConfig.RequiresMountsFor = "/srv/photoprism"; - serviceConfig.ReadWritePaths = [ - "/srv/photoprism/sidecar" - ]; - }; - fileSystems."/srv/transmission" = { device = "//u439959-sub4.your-storagebox.de/u439959-sub4"; fsType = "smb3"; |