os/shared/home/bash.nix

29 lines
No EOL
469 B
Nix

# Configuration of the shell.
# TODO: switch to a shell from this century
{ pkgs, lib, config, ... }:
let cfg = config.custom.bash;
in with lib; {
options.custom.bash = with types; {
extraAliases = mkOption {
default = {};
};
};
config = {
# Configure the shell itself
programs.bash = {
enable = true;
shellAliases = {} // cfg.extraAliases;
};
# Configure the prompt
programs.starship.enable = true;
};
}