nixos-configs/homeManagerModules/shell/nix-tools/default.nix

36 lines
587 B
Nix
Raw Normal View History

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;
}