From c290055571428a1015b135d89bce86ffe13837a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 4 Jan 2025 04:08:22 +0100 Subject: [PATCH] nixos/simplesamlphp: don't configure empty options This pollutes options. ... .definitionsWithLocations --- nixos/modules/services/web-apps/simplesamlphp.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/simplesamlphp.nix b/nixos/modules/services/web-apps/simplesamlphp.nix index e970266fc17d..46d8b69a174b 100644 --- a/nixos/modules/services/web-apps/simplesamlphp.nix +++ b/nixos/modules/services/web-apps/simplesamlphp.nix @@ -97,7 +97,7 @@ in description = "Instances of SimpleSAMLphp. This module is designed to work with already existing PHP-FPM pool and NGINX virtualHost."; }; - config = { + config = lib.mkIf (cfg != { }) { services.phpfpm.pools = lib.mapAttrs' ( phpfpmName: opts: lib.nameValuePair opts.phpfpmPool { phpEnv.SIMPLESAMLPHP_CONFIG_DIR = "${generateConfig opts}"; }