Files
nixos/hosts/marauder/phpdev.nix
2025-04-19 01:18:00 -07:00

24 lines
444 B
Nix
Executable File

{ 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
];
}