56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.nushell;
|
|
inherit (lib) mkEnableOption mkIf mkOption;
|
|
in
|
|
{
|
|
options.nushell = {
|
|
enable = mkEnableOption "nushell";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs = {
|
|
nushell = {
|
|
enable = true;
|
|
};
|
|
nix-your-shell = {
|
|
enable = true;
|
|
enableNushellIntegration = true;
|
|
};
|
|
direnv = {
|
|
enable = true;
|
|
enableNushellIntegration = true;
|
|
nix-direnv.enable = true;
|
|
config = {
|
|
hide_env_diff = true;
|
|
};
|
|
};
|
|
eza = {
|
|
enable = true;
|
|
enableNushellIntegration = true;
|
|
extraOptions = [ "--group-directories-first" ];
|
|
};
|
|
starship = {
|
|
enable = true;
|
|
enableNushellIntegration = false;
|
|
settings = {
|
|
nodejs.disabled = true;
|
|
package.disabled = true;
|
|
aws.disabled = true;
|
|
python.disabled = true;
|
|
};
|
|
};
|
|
|
|
zoxide = {
|
|
enableNushellIntegration = false;
|
|
};
|
|
};
|
|
};
|
|
}
|