From 30faf02d276ddde1a9c176ced32bf36ed9162f91 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 18 May 2023 20:23:02 +0200 Subject: [PATCH 1/2] create photoprism accounts --- systems/LoutreOS/services.nix | 3 ++- systems/LoutreOS/web.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 3b8df04..e028104 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -549,9 +549,10 @@ in photoprism = { enable = true; originalsPath = "/mnt/backup_loutre/amandoleen/d/Users/Amand/Pictures"; + passwordFile = "/mnt/secrets/photoprism_pass"; settings = { - PHOTOPRISM_AUTH_MODE = "public"; PHOTOPRISM_READONLY = "1"; + PHOTOPRISM_DETECT_NSFW = "1"; PHOTOPRISM_SITE_URL = "https://photo.nyanlout.re/"; }; }; diff --git a/systems/LoutreOS/web.nix b/systems/LoutreOS/web.nix index aa7ca38..587f5ef 100644 --- a/systems/LoutreOS/web.nix +++ b/systems/LoutreOS/web.nix @@ -264,7 +264,7 @@ in "ci.nyanlout.re" = simpleReverse 52350; "gitea.nyanlout.re" = simpleReverse config.services.gitea.httpPort; "musique.nyanlout.re" = simpleReverse config.services.navidrome.settings.Port; - "photo.nyanlout.re" = recursiveUpdate (authReverse config.services.photoprism.port) { + "photo.nyanlout.re" = recursiveUpdate (simpleReverse config.services.photoprism.port) { locations."/" = { proxyWebsockets = true; }; From d28de2a644e9a4541f2cac9cd47b7405f7d1e45a Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 18 May 2023 20:23:15 +0200 Subject: [PATCH 2/2] use unstable radarr and sonarr --- systems/LoutreOS/medias.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/systems/LoutreOS/medias.nix b/systems/LoutreOS/medias.nix index 96b06ee..f177bea 100644 --- a/systems/LoutreOS/medias.nix +++ b/systems/LoutreOS/medias.nix @@ -17,8 +17,14 @@ }; }; - radarr.enable = true; - sonarr.enable = true; + radarr = { + enable = true; + package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.radarr; + }; + sonarr = { + enable = true; + package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.sonarr; + }; jackett = { enable = true; package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.jackett;