From e7414a18f73748705d558b4df447ee956282059f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Grochowski?= Date: Thu, 12 Dec 2024 15:05:19 +0100 Subject: [PATCH] feat(nix): update direnv config --- modules/direnv/default.nix | 19 +++++++++++-------- modules/direnv/direnv.toml | 4 ---- 2 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 modules/direnv/direnv.toml diff --git a/modules/direnv/default.nix b/modules/direnv/default.nix index 68883d7..05da7d4 100644 --- a/modules/direnv/default.nix +++ b/modules/direnv/default.nix @@ -1,10 +1,13 @@ -{ username, pkgs, ... }: { - - home-manager.users.${username} = { - home.packages = with pkgs; [ - direnv - nix-direnv - ]; - home.file."./.config/direnv/direnv.toml".source = ./direnv.toml; +{ ... }: { + programs.direnv = { + enable = true; + silent = true; + loadInNixShell = true; + nix-direnv = { + enable = true; + }; + # TODO: Update and enable shell integrations: + # enableBashIntegration = true; + # enableFishIntegration = true; }; } diff --git a/modules/direnv/direnv.toml b/modules/direnv/direnv.toml deleted file mode 100644 index fcf95f6..0000000 --- a/modules/direnv/direnv.toml +++ /dev/null @@ -1,4 +0,0 @@ -# https://direnv.net/man/direnv.toml.1.html - -warn_timeout = "10s" -hide_env_diff = true