Switching from direnv + Nix Flakes to devenv (with treefmt and git-hooks)
In a previous post, I set up this blog’s development environment using a flake.nix and direnv (use flake). That worked fine as long as the shell only needed hugo, git, and markdownlint-cli2. Once I wanted a full set of formatters and linters (nixfmt, statix, deadnix, yamlfmt, prettier, yamllint, actionlint, typos, gitleaks, lychee) wired into pre-commit hooks and CI, maintaining a hand-rolled flake.nix stopped paying for itself. I migrated the repository to devenv 2.4.0. ...