Setup php7.2 dev tools

This commit is contained in:
2025-04-19 01:18:00 -07:00
parent 3ee2d1dd84
commit 493d9962ef
4 changed files with 130 additions and 19 deletions

View File

@@ -6,6 +6,7 @@
self.nixosModules.zerotier
./backup.nix
./dev.nix
./phpdev.nix
./printing.nix
];

23
hosts/marauder/phpdev.nix Executable file
View File

@@ -0,0 +1,23 @@
{ pkgs, inputs, ... }:
{
services.mysql = {
enable = true;
package = pkgs.mariadb;
};
services.httpd = {
enable = true;
adminAddr = "admin@localhost";
enablePHP = true;
virtualHosts = {
"localhost" = {
documentRoot = "/var/www/localhost";
locations."/".index = "index.html index.php";
};
};
};
environment.systemPackages = [
inputs.phps.packages.x86_64-linux.php72
];
}