os/shared/home/bash.nix

29 lines
469 B
Nix
Raw Normal View History

2023-05-21 22:26:26 +02:00
# Configuration of the shell.
2023-05-22 00:45:36 +02:00
# TODO: switch to a shell from this century
2023-05-21 21:15:04 +02:00
{ pkgs, lib, config, ... }:
2023-05-22 00:45:36 +02:00
let cfg = config.custom.bash;
2023-05-21 21:15:04 +02:00
in with lib; {
2023-05-22 00:45:36 +02:00
options.custom.bash = with types; {
2023-05-21 21:15:04 +02:00
extraAliases = mkOption {
default = {};
};
};
config = {
# Configure the shell itself
2023-05-22 00:45:36 +02:00
programs.bash = {
2023-05-21 21:15:04 +02:00
enable = true;
shellAliases = {} // cfg.extraAliases;
};
2023-05-21 22:26:26 +02:00
# Configure the prompt
2023-05-21 21:15:04 +02:00
programs.starship.enable = true;
};
}