Rename directory

This commit is contained in:
Oliver Davies 2025-06-23 00:52:23 +01:00
parent 4ec8ad983a
commit 55aadd6ec5
5 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,62 @@
{ inputs, ... }:
{
imports = [
inputs.devshell.flakeModule
];
perSystem =
{ pkgs, ... }:
let
php = pkgs.php83.buildEnv {
extraConfig = ''
upload_max_filesize = 50M;
post_max_size = 50M;
'';
};
phpPackages = pkgs.php83Packages;
in
{
devshells.default = {
packages = with pkgs; [
just
lua-language-server
lua54Packages.luacheck
nixd
php
phpactor
phpPackages.composer
sqlite
tailwindcss_4
tailwindcss-language-server
watchman
];
commands = [
{
name = "generate";
command = "vendor/bin/drush tome:static --uri https://www.oliverdavies.uk";
help = "Generate the static HTML";
}
{
name = "import";
command = "vendor/bin/drush tome:import";
help = "Re-import configuration, content and files";
}
{
name = "upload";
command = ''
generate
rsync -avzP html/ nixedo.oliverdavies.uk:/var/www/vhosts/website-tome \
--delete --delete-after
'';
help = "Generate the static HTML and upload it to the server";
}
];
};
};
}

View file

@ -0,0 +1,16 @@
{ inputs, ... }:
{
imports = [
inputs.git-hooks-nix.flakeModule
./phpcs.nix
./phpstan.nix
];
perSystem =
{ config, ... }:
{
devshells.default.devshell.startup.git-hooks.text = config.pre-commit.installationScript;
};
}

View file

@ -0,0 +1,7 @@
{
perSystem.pre-commit.settings.hooks.phpcs = {
enable = true;
settings.binPath = "vendor/bin/phpcs";
};
}

View file

@ -0,0 +1,7 @@
{
perSystem.pre-commit.settings.hooks.phpstan = {
enable = true;
settings.binPath = "vendor/bin/phpstan";
};
}