mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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 = { };
|
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";
|
||||||
|
|
Loading…
Reference in a new issue