28 lines
No EOL
425 B
Nix
28 lines
No EOL
425 B
Nix
# Configuration of the shell.
|
|
|
|
{ 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;
|
|
};
|
|
|
|
# Configure the prompt
|
|
programs.starship.enable = true;
|
|
|
|
};
|
|
|
|
} |