diff options
| author | Martin Fischer <martin@push-f.com> | 2026-09-30 18:44:39 +0200 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-10-14 06:37:06 +0200 |
| commit | f641d455b25968c7aec366a9dceb4febeb18d3da (patch) | |
| tree | 2a9adc162c1ee8b24851abb499b85f6c222d176d /nixos/profiles | |
| parent | 3f7a0208a50710a5718325bd1426ff12768ab2c8 (diff) | |
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.
Diffstat (limited to 'nixos/profiles')
| -rw-r--r-- | nixos/profiles/workstation/dev.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/profiles/workstation/dev.nix b/nixos/profiles/workstation/dev.nix index 0ba131e..c687c7d 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 |
