phpipam: update php package

This commit is contained in:
Sean Buckley 2022-12-13 22:33:09 -05:00
parent 143464aa2b
commit 4d987c3eb1

View file

@ -47,6 +47,11 @@ in
default = { }; default = { };
}; };
phpPackage = lib.mkOption {
type = lib.types.package;
default = pkgs.php;
};
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
@ -59,9 +64,9 @@ in
systemd = { systemd = {
services.phpipam-tasks = { services.phpipam-tasks = {
script = '' script = ''
${pkgs.php74}/bin/php ${phpipamHtdocs}/functions/scripts/pingCheck.php ${cfg.phpPackage}/bin/php ${phpipamHtdocs}/functions/scripts/pingCheck.php
${pkgs.php74}/bin/php ${phpipamHtdocs}/functions/scripts/discoveryCheck.php ${cfg.phpPackage}/bin/php ${phpipamHtdocs}/functions/scripts/discoveryCheck.php
${pkgs.php74}/bin/php ${phpipamHtdocs}/functions/scripts/remove_offline_addresses.php ${cfg.phpPackage}/bin/php ${phpipamHtdocs}/functions/scripts/remove_offline_addresses.php
''; '';
serviceConfig.User = "nginx"; serviceConfig.User = "nginx";
startAt = "*:0/15"; startAt = "*:0/15";
@ -70,7 +75,7 @@ in
}; };
services = { services = {
phpfpm.phpPackage = pkgs.php74; phpfpm.phpPackage = cfg.phpPackage;
phpfpm.pools.www = { phpfpm.pools.www = {
user = "nginx"; user = "nginx";
group = "nginx"; group = "nginx";