feat(tools): add flake

This commit is contained in:
Amadeus Mader 2026-03-01 21:10:15 +01:00
parent 67d8bd5598
commit ee8921a8e1
3 changed files with 44 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

2
.gitignore vendored
View file

@ -45,3 +45,5 @@ scratchpad.md
# Database files
*.db
*.db-*
.direnv/

41
flake.nix Normal file
View file

@ -0,0 +1,41 @@
{
description = "Development environment for pinchflat";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
# nix develop . --command fish
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
lazydocker
lefthook
cocogitto
just
tailwindcss_4
docker
docker-buildx
docker-compose
opencode
typos
];
shellHook = ''
lefthook install
cog install-hook
export COMPOSE_BAKE=true
'';
};
});
}