mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
34 lines
780 B
Nix
34 lines
780 B
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.bash;
|
|
flakePath = builtins.toString config.user.defaultFlakePath;
|
|
|
|
in
|
|
{ options.modules.bash = { enable = mkEnableOption "bash"; };
|
|
config = mkIf cfg.enable {
|
|
programs.bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
|
|
initExtra = import ./config/prompt.nix;
|
|
profileExtra = import ./config/bashprofile.nix;
|
|
bashrcExtra = import ./config/bashrc.nix;
|
|
shellAliases = import ./config/alias.nix { inherit flakePath; };
|
|
};
|
|
|
|
programs = {
|
|
direnv = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
ripgrep.enable = true;
|
|
lsd = {
|
|
enable = true;
|
|
enableAliases = true;
|
|
};
|
|
};
|
|
};
|
|
}
|