35 lines
587 B
Nix
35 lines
587 B
Nix
self: {
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf;
|
|
inherit (self.inputs) nix-index-db;
|
|
|
|
cfg = config.programs.bash;
|
|
in {
|
|
imports = [nix-index-db.hmModules.nix-index];
|
|
|
|
config.programs = mkIf cfg.enable {
|
|
direnv = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
|
|
nix-direnv = {
|
|
enable = true;
|
|
package = pkgs.nix-direnv;
|
|
};
|
|
};
|
|
|
|
nix-index-database.comma.enable = true;
|
|
|
|
nix-index = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
};
|
|
};
|
|
|
|
# For accurate stack trace
|
|
_file = ./default.nix;
|
|
}
|