From 648b8ab4318de7832cf6fbe467d328c06a890711 Mon Sep 17 00:00:00 2001 From: Gregor Grigorjan Date: Thu, 22 Aug 2024 14:48:35 +0300 Subject: [PATCH] tweak(direnv): hide env diff --- modules/nixos/programs/direnv/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/modules/nixos/programs/direnv/default.nix b/modules/nixos/programs/direnv/default.nix index 9b5abf1..c93c701 100644 --- a/modules/nixos/programs/direnv/default.nix +++ b/modules/nixos/programs/direnv/default.nix @@ -1,18 +1,23 @@ { config, lib, ... }: - -with lib; -with lib.elementary; let + inherit (lib) mkEnableOption mkIf; cfg = config.elementary.programs.direnv; in { - options.elementary.programs.direnv = with types; { + options.elementary.programs.direnv = { enable = mkEnableOption "direnv"; }; config = mkIf cfg.enable { - elementary.home.programs.direnv = enabled // { - nix-direnv = enabled; + elementary.home.programs.direnv = { + enable = true; + nix-direnv.enable = true; + + config = { + global = { + hide_env_diff = true; + }; + }; }; }; }