mirror of
https://github.com/nix-community/home-manager
synced 2024-11-09 12:49:44 +01:00
parent
c2f806e60a
commit
36317d4d38
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,7 @@ in {
|
||||||
package = mkPackageOption pkgs "nix-direnv" { };
|
package = mkPackageOption pkgs "nix-direnv" { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
silent = mkEnableOption "silent mode, that is, disabling direnv logging";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -163,5 +164,7 @@ in {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
home.sessionVariables = lib.mkIf cfg.silent { DIRENV_LOG_FORMAT = ""; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue