32 lines
618 B
Nix
32 lines
618 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.myShells;
|
|
in
|
|
with lib; {
|
|
imports = [
|
|
./zsh.nix
|
|
./fish
|
|
./nushell
|
|
./zoxide.nix
|
|
./direnv.nix
|
|
./starship
|
|
];
|
|
|
|
options.myShells = {
|
|
defaultShell = with types; mkOption {type = str;};
|
|
enable = mkEnableOption "Enables the shell customisation module.";
|
|
};
|
|
config = {
|
|
myShells = {
|
|
zsh.enable = false;
|
|
fish.enable = false;
|
|
nushell.enable = true;
|
|
defaultShell = "${config.programs.nushell.package}/bin/nu";
|
|
prompts.starship.enable = true;
|
|
};
|
|
};
|
|
}
|