mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Move direnv into it's own module
This commit is contained in:
parent
c245e9422a
commit
e72397e3e1
3 changed files with 17 additions and 9 deletions
12
modules/home/programs/shell/direnv.nix
Normal file
12
modules/home/programs/shell/direnv.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.custom.programs.shell.direnv.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.programs.shell.direnv.enable {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
silent = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
options.custom.programs.shell.zsh.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.programs.shell.zsh.enable {
|
||||
custom.programs.shell.aliases.enable = true;
|
||||
|
||||
programs = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
|
|
@ -43,12 +41,6 @@
|
|||
};
|
||||
|
||||
fzf.enable = true;
|
||||
|
||||
direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
silent = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue