mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
27 lines
561 B
Nix
27 lines
561 B
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.user.bash;
|
|
|
|
in
|
|
{ options.modules.user.bash = { enable = mkEnableOption "user.bash"; };
|
|
config = mkIf cfg.enable {
|
|
programs.bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
|
|
initExtra = import ./config/prompt.nix { inherit lib config; };
|
|
bashrcExtra = import ./config/bashrc.nix;
|
|
shellAliases = import ./config/alias.nix;
|
|
};
|
|
|
|
programs = {
|
|
ripgrep.enable = true;
|
|
lsd = {
|
|
enable = true;
|
|
enableAliases = true;
|
|
};
|
|
};
|
|
};
|
|
}
|