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. ...

November 25, 2026 · 9 min · Julien Noblet

Flawless and Reproducible Devshells with Nix Flakes and direnv

In my previous article about Nix, I explained why I gradually moved away from asdf and Mise in favor of Nix. Later on, we looked at how to manage secrets securely with sops-nix. Today, let’s tackle everyday developer friction: per-project development environments. We have all faced this classic situation: Project A requires Node 18 and a specific pnpm version. Project B runs on Node 22 with Python 3.12 and compiled C bindings. Project C demands Hugo extended, a Markdown linter, and a PostgreSQL client. The usual outcome? Version conflicts everywhere, forgotten nvm use calls, global installations cluttering your OS, or having to spin up heavy Docker/devcontainer setups just to run a linter or format code. ...

November 7, 2026 · 6 min · Julien Noblet

GitOps all the way: managing secrets with sops-nix and age

In my previous article about Nix, I explained why I switched to Nix and Flakes to push the GitOps philosophy all the way: my entire system and tools are defined in versioned code. However, as soon as you start putting everything into Git (especially in a public repository or one shared across multiple machines), you quickly hit a wall: what do we do with secrets? The secrets paradox in Nix On NixOS, there are two major pitfalls when handling a password, a private key, or an API token: ...

November 7, 2026 · 5 min · Julien Noblet

ASDF is cool, but Nix is better

After testing ASDF for some time, I decided to switch to Nix. Here is why. I believe in the GitOps principle: everything needed for a project to run smoothly must be versioned and easily replicable. For this, ASDF is not bad at all, but it still has a few flaws. The flaws of ASDF With ASDF, we have ~/.tool-versions which allows us to specify which version to use. And that’s cool. But (and there is a “but”). Often, I used ~/.tool-versions to define the global version I was using. I even set up a renovate rule for it: renovate.json5 ...

May 27, 2026 · Last Modified: September 19, 2026 · 5 min · Julien Noblet