mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 21:19:07 +01:00
19 lines
349 B
Nix
19 lines
349 B
Nix
{
|
|
config,
|
|
modulesPath,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ "${modulesPath}/programs/direnv.nix" ];
|
|
|
|
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;
|
|
};
|
|
};
|
|
}
|