init
This commit is contained in:
commit
aae151cee6
33 changed files with 1351 additions and 0 deletions
24
modules/home-manager/shells/direnv.nix
Executable file
24
modules/home-manager/shells/direnv.nix
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.custom.shells.direnv;
|
||||
in
|
||||
{
|
||||
options.custom.shells.direnv = {
|
||||
enable = lib.mkEnableOption "Whether to enable the direnv shell environment tool.";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
|
||||
enableBashIntegration = config.programs.bash.enable;
|
||||
enableFishIntegration = config.programs.fish.enable;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue