Update configuration files

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-10-13 19:57:49 +01:00
parent c3113b0eec
commit 08e65f606e
27 changed files with 460 additions and 266 deletions

View file

@ -0,0 +1,31 @@
{ inputs, ... }:
{
imports = [ inputs.devshell.flakeModule ];
perSystem =
{ pkgs, ... }:
{
devshells.default =
with pkgs;
let
php = pkgs.php83.buildEnv {
extraConfig = ''
memory_limit = 128M
'';
};
phpPackages = pkgs.php83Packages;
in
{
packages = [
mariadb
php
phpPackages.composer
phpactor
pv
yamlfmt
];
};
};
}

View file

@ -0,0 +1,40 @@
{ inputs, ... }:
{
imports = [ inputs.process-compose.flakeModule ];
perSystem =
{ pkgs, ... }:
let
databasePort = 3306;
httpPort = 8888;
in
{
process-compose."default" = {
imports = [
inputs.services.processComposeModules.default
];
services = {
mysql."mysql" = {
enable = true;
initialDatabases = [
{ name = "drupal_nix_flake_example"; }
];
settings.mysqld.port = toString databasePort;
};
};
settings.processes.php = {
command = pkgs.writeShellApplication {
name = "drush-server";
text = "vendor/bin/drush runserver ${toString httpPort}";
};
depends_on."mysql".condition = "process_healthy";
};
};
};
}

View file

@ -0,0 +1,5 @@
{ inputs, ... }:
{
systems = import inputs.systems;
}