mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 08:04:25 +01:00
Modularize the shell config
This commit is contained in:
parent
cbebff390c
commit
30faa1f2bf
10 changed files with 104 additions and 74 deletions
13
modules/home/shell/direnv.nix
Normal file
13
modules/home/shell/direnv.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.myConfig.shell.direnv.enable = lib.mkEnableOption "";
|
||||
|
||||
config.programs.direnv = lib.mkIf config.myConfig.shell.direnv.enable {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
config.global.hide_env_diff = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue