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

30 lines
508 B
Nix

{ PHPFPMSiteConfig
}:
{ PHPFPMConfig
, user
, group
, name
, phpConfigDir
, siteName
, siteRoot
, siteSocket
, socketUser
, socketGroup
, dependsOn
, connectsTo
}:
rec {
inherit name user group siteSocket;
inherit dependsOn connectsTo;
pkg = PHPFPMSiteConfig {
inherit (PHPFPMConfig) siteConfigDir;
inherit user group;
inherit siteSocket phpConfigDir socketUser socketGroup;
service = siteName;
serviceRoot = siteRoot;
allowedClients = "127.0.0.1";
};
type = "fileset";
}