From 86417f073780ed4d7701fa9bfea2ac31b65e6ca9 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 2 Nov 2025 08:33:50 +0100 Subject: [PATCH] nixosTests.photoprism: fix secret --- nixos/tests/photoprism.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nixos/tests/photoprism.nix b/nixos/tests/photoprism.nix index e4cdfeb43331..505bb6fd249d 100644 --- a/nixos/tests/photoprism.nix +++ b/nixos/tests/photoprism.nix @@ -10,11 +10,14 @@ enable = true; port = 8080; originalsPath = "/media/photos/"; - passwordFile = pkgs.writeText "password" "secret"; + passwordFile = "/etc/photoprism-password"; + }; + environment = { + etc."photoprism-password".text = "secret"; + extraInit = '' + mkdir -p /media/photos + ''; }; - environment.extraInit = '' - mkdir -p /media/photos - ''; }; testScript = ''