Attainly/flake.nix
Yisroel Baum ce1b920fb6
move cypress into frontend
Manage Cypress through the frontend npm lockfile instead of the Nix shell. Approve its install script and align the Oxlint package pair so npm can resolve dependencies without overrides.
2026-07-31 09:30:15 +03:00

53 lines
1.1 KiB
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
utils,
}:
utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
php = pkgs.php.buildEnv {
extraConfig = ''
memory_limit = "1G";
upload_max_filesize = "10M";
post_max_size = "25M";
'';
};
in
{
formatter = pkgs.nixfmt-tree;
devShells.default = pkgs.mkShell {
packages = with pkgs; [
bash
onefetch
just
php
phpPackages.composer
phpPackages.php-codesniffer
vscode-langservers-extracted
nodejs
nixfmt
nixfmt-tree
yaml-language-server
typescript
postgresql
mailpit
process-compose
mkcert
caddy
];
shellHook = builtins.readFile ./nix/shell-hook.sh;
};
}
);
}