chore: put direnv in a module
This commit is contained in:
parent
836514c1d4
commit
f977af61a9
4 changed files with 20 additions and 7 deletions
18
modules/home-manager/cli/direnv/default.nix
Normal file
18
modules/home-manager/cli/direnv/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.cli.direnv;
|
||||
in
|
||||
{
|
||||
options.modules.cli.direnv = {
|
||||
enable = mkEnableOption "enable direnv";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
./application/gnupg
|
||||
./application/imv
|
||||
./application/zathura
|
||||
./cli/direnv
|
||||
./cli/ghq/default.nix
|
||||
./cli/git
|
||||
./cli/neovim
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue