From 11732a457b69c6cd72a38ac17fa6762e221e1ce6 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 30 Sep 2026 18:44:39 +0200 Subject: fix(workstation): use nix-direnv nix-direnv isn't used automatically when installed, it needs to be sourced in direnvrc, which I was missing. Just enabling programs.direnv does this by default (programs.direnv.nix-direnv.enable defaults to true). This had caused gcroots to be broken for some reason. I'm removing user/direnv/direnv.toml because with programs.direnv it's not read anymore since the module sets DIRENV_CONFIG=/etc/direnv. --- nixos/profiles/workstation/dev.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'nixos') diff --git a/nixos/profiles/workstation/dev.nix b/nixos/profiles/workstation/dev.nix index 693e5a3..0f28507 100644 --- a/nixos/profiles/workstation/dev.nix +++ b/nixos/profiles/workstation/dev.nix @@ -1,15 +1,19 @@ { config, pkgs, pkgs-unstable, ... }: { + programs.direnv = { + enable = true; + settings.global = { + hide_env_diff = true; + }; + }; + environment.systemPackages = with pkgs; [ rustup go python313 nodejs_22 - direnv - nix-direnv - # CLI tools docker-compose gnumake -- cgit v1.3.1