'';
};
+ envFile = mkOption {
+ default = {};
+ type = types.attrsOf types.string;
+ example = literalExample ''
+ { mypool = "path/to/file";
+ }
+ '';
+ description = ''
+ Extra environment file go into the service script.
+ '';
+ };
+
poolPhpConfigs = mkOption {
default = {};
type = types.attrsOf types.lines;
cfgFile = fpmCfgFile pool poolConfig;
poolPhpIni = cfg.poolPhpConfigs.${pool} or "";
in {
+ EnvironmentFile = if builtins.hasAttr pool cfg.envFile then [cfg.envFile.${pool}] else [];
Slice = "phpfpm.slice";
PrivateDevices = true;
ProtectSystem = "full";