nixos-configs/homeManagerModules/shell/nix-tools/default.nix
matt1432 66f415ff5f
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: move common/home to nixosModules/shell
2024-11-22 17:58:24 -05:00

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