mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
phpipam: update php package
This commit is contained in:
parent
143464aa2b
commit
4d987c3eb1
1 changed files with 9 additions and 4 deletions
|
@ -47,6 +47,11 @@ in
|
|||
default = { };
|
||||
};
|
||||
|
||||
phpPackage = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.php;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -59,9 +64,9 @@ in
|
|||
systemd = {
|
||||
services.phpipam-tasks = {
|
||||
script = ''
|
||||
${pkgs.php74}/bin/php ${phpipamHtdocs}/functions/scripts/pingCheck.php
|
||||
${pkgs.php74}/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/pingCheck.php
|
||||
${cfg.phpPackage}/bin/php ${phpipamHtdocs}/functions/scripts/discoveryCheck.php
|
||||
${cfg.phpPackage}/bin/php ${phpipamHtdocs}/functions/scripts/remove_offline_addresses.php
|
||||
'';
|
||||
serviceConfig.User = "nginx";
|
||||
startAt = "*:0/15";
|
||||
|
@ -70,7 +75,7 @@ in
|
|||
};
|
||||
|
||||
services = {
|
||||
phpfpm.phpPackage = pkgs.php74;
|
||||
phpfpm.phpPackage = cfg.phpPackage;
|
||||
phpfpm.pools.www = {
|
||||
user = "nginx";
|
||||
group = "nginx";
|
||||
|
|
Loading…
Reference in a new issue