24 lines
444 B
Nix
Executable File
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
|
|
];
|
|
}
|