os/shared/home/fish.nix

28 lines
425 B
Nix
Raw Normal View History

2023-05-21 22:26:26 +02:00
# Configuration of the shell.
2023-05-21 21:15:04 +02:00
{ pkgs, lib, config, ... }:
let cfg = config.custom.fish;
in with lib; {
options.custom.fish = with types; {
extraAliases = mkOption {
default = {};
};
};
config = {
# Configure the shell itself
programs.fish = {
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;
};
}