Skip to content

Commit

Permalink
tweak(direnv): hide env diff
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Aug 22, 2024
1 parent e8759a1 commit 648b8ab
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions modules/nixos/programs/direnv/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
};
};
};
}

0 comments on commit 648b8ab

Please sign in to comment.