WSL + more modularity

This commit is contained in:
System administrator 2024-01-30 04:25:25 +00:00 committed by Bryan Ramos
parent 7b63b3b04f
commit e513913099
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
57 changed files with 356 additions and 92 deletions

View file

@ -0,0 +1,33 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.bash;
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;
};
programs = {
direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv.enable = true;
};
ripgrep.enable = true;
lsd = {
enable = true;
enableAliases = true;
};
};
};
}