blob: db65145f8528a453d054b33b9071a7f7fe9dfca9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# the development environment switcher
{
config,
lib,
pkgs,
...
}:
let
cfg = config.development.direnv;
in
{
options.development.direnv = {
enable = lib.mkEnableOption "Enables direnv.";
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = config.programs.direnv.package;
description = "The direnv package to use.";
};
};
config = lib.mkIf cfg.enable {
programs.direnv = {
enable = true;
enableZshIntegration = lib.mkIf config.terminal.zsh.enable true;
enableBashIntegration = true;
silent = false;
nix-direnv = {
enable = true;
};
};
};
}
|