replace bash with nushell

This commit is contained in:
wi11-holdsworth 2025-08-07 11:41:04 +10:00
parent 9de7d53d9c
commit e5a6650255
4 changed files with 34 additions and 35 deletions

View file

@ -1,13 +0,0 @@
{ config, lib, ... }:
let
feature = "bash";
in
{
config = lib.mkIf config.${feature}.enable {
programs.bash.enable = true;
};
imports = [ ];
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
}

View file

@ -0,0 +1,33 @@
{ config, lib, ... }:
let
feature = "nushell";
in
{
config = lib.mkIf config.${feature}.enable {
home.shell.enableNushellIntegration = true;
programs.nushell = {
enable = true;
environmentVariables = {
};
settings = {
};
shellAliases = {
cat = "bat";
cd = "zoxide";
g = "lazygit";
l = "eza";
la = "eza -a";
ls = "eza";
ns = "nh os switch";
vi = "nvim";
vim = "nvim";
};
};
};
imports = [ ];
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
}