1
0
Fork 0
selfhostblocks/php-fpm/mkunit.nix
2023-02-19 20:37:52 -08:00

26 lines
463 B
Nix

{ PHPFPMService
}:
{ name
, configDir
, configFile
, phpIniConfigDir
, phpIniConfigFile
, runtimeDirectory
, serviceSuffix
, dependsOn ? {}
}:
{
inherit name configDir configFile;
inherit phpIniConfigDir phpIniConfigFile;
inherit runtimeDirectory;
pkg = PHPFPMService {
inherit serviceSuffix;
configFile = "${configDir}/${configFile}";
phpIni = "${phpIniConfigDir}/${phpIniConfigFile}";
};
inherit dependsOn;
type = "systemd-unit";
}