nixos/simplesamlphp: don't configure empty options (#370787)

This commit is contained in:
Sandro
2025-01-25 16:59:55 +01:00
committed by GitHub
@@ -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}"; }