feat: added new configuration for enabling fish shell

This commit is contained in:
Zhongheng Liu 2024-08-10 13:17:21 +08:00
commit 8bdd51e77a
No known key found for this signature in database
7 changed files with 73 additions and 12 deletions

View file

@ -9,19 +9,20 @@ in
with lib; {
imports = [
./zsh.nix
./fish.nix
./direnv.nix
./starship
];
options.myShells = {
defaultShell = with types; mkOption {type = str;};
enable = mkEnableOption "Enables the shell customisation module.";
useZsh = mkOption {
type = types.bool;
default = true;
};
};
config = mkIf cfg.enable {
config = {
myShells = {
zsh.enable = cfg.useZsh;
zsh.enable = false;
fish.enable = true;
defaultShell = "fish";
prompts.starship.enable = true;
};
};