feat: Updated templates.

This commit is contained in:
Spencer Brower
2025-07-10 14:34:34 -04:00
parent 7656df211f
commit 313051a9bd
8 changed files with 290 additions and 53 deletions

View File

@@ -1,12 +1,9 @@
{
description = "A very basic flake";
description = "A PHP dev environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
# dolt.url = "github:sbrow/dolt";
# phps.url = "github:fossar/nix-phps";
# phps.inputs.nixpkgs.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
process-compose-flake.url = "github:Platonic-Systems/process-compose-flake";
@@ -45,7 +42,7 @@
xdebug.client_port=9000
; xdebug 2
xdebug.remote_enable=1
; xdebug.remote_enable=1
'';
};
in
@@ -75,22 +72,7 @@
programs.nixpkgs-fmt.enable = true;
programs.deadnix.enable = true;
# Format php files
/*
settings.formatter."pint" =
{
command = "./vendor/bin/pint";
includes = [ "*[!.blade].php" ];
excludes = [ "_ide_helper*.php" ];
};
# Format blade files
settings.formatter."blade-formatter" = {
command = "./bin/blade-formatter";
options = [ "--write" ];
includes = [ "*.blade.php" ];
};
*/
# TODO: Format php files
# Format js, json, and yaml files
programs.prettier.enable = true;
@@ -103,23 +85,13 @@
"*.md"
];
};
# Format elm components
#programs.elm-format.enable = true;
# Override the default package
#programs.terraform.package = nixpkgs.terraform_1;
};
process-compose.default.settings.processes = {
web.command = "sudo ${pkgs.caddy}/bin/caddy run";
mail.command = "${pkgs.mailhog}/bin/MailHog";
php.command = "${php}/bin/php-fpm -F -y php-fpm.conf";
#php.command = "${php} artisan octane:start --watch";
# redis.command = "${$pks.redis}/bin/redis-server";
# db.command = "${doltPkg}/bin/dolt sql-server --config dolt.yml";
# worker.command = php artisan horizon;
# schedule.command = php artisan schedule:work;
};
devShells.default = pkgs.mkShell