From 7dcad49a3007f2fc7bd3795b9ffa2abadf1a3d4a Mon Sep 17 00:00:00 2001 From: DoctorDalek1963 Date: Sun, 18 May 2025 00:36:45 +0100 Subject: [PATCH] nixos/stash: fix mutableSettings logic Fixes services.stash.mutableSettings so that it makes sense. The logic was previously backwards and the settings would be overriden if mutableSettings was true. --- nixos/modules/services/web-apps/stash.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/stash.nix b/nixos/modules/services/web-apps/stash.nix index 47f66edb7ddb..fdd01140cd7d 100644 --- a/nixos/modules/services/web-apps/stash.nix +++ b/nixos/modules/services/web-apps/stash.nix @@ -512,7 +512,7 @@ in ExecStartPre = pkgs.writers.writeBash "stash-setup.bash" ( '' install -d ${cfg.settings.generated} - if [[ ! -z "${toString cfg.mutableSettings}" || ! -f ${cfg.dataDir}/config.yml ]]; then + if [[ -z "${toString cfg.mutableSettings}" || ! -f ${cfg.dataDir}/config.yml ]]; then env \ password=$(< ${cfg.passwordFile}) \ jwtSecretKeyFile=$(< ${cfg.jwtSecretKeyFile}) \