replace bash with nushell
This commit is contained in:
parent
9de7d53d9c
commit
e5a6650255
4 changed files with 34 additions and 35 deletions
|
|
@ -7,8 +7,8 @@ in
|
||||||
{
|
{
|
||||||
imports = (featureBundler ./bundles) ++ (featureBundler ./features);
|
imports = (featureBundler ./bundles) ++ (featureBundler ./features);
|
||||||
|
|
||||||
bash.enable = lib.mkDefault true;
|
|
||||||
gh.enable = lib.mkDefault true;
|
gh.enable = lib.mkDefault true;
|
||||||
git.enable = lib.mkDefault true;
|
git.enable = lib.mkDefault true;
|
||||||
|
nushell.enable = lib.mkDefault true;
|
||||||
zoxide.enable = lib.mkDefault true;
|
zoxide.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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}";
|
|
||||||
}
|
|
||||||
33
modules/home-manager/features/nushell.nix
Normal file
33
modules/home-manager/features/nushell.nix
Normal 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}";
|
||||||
|
}
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
feature = "shell";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
config = lib.mkIf config.${feature}.enable {
|
|
||||||
environment.shellAliases = {
|
|
||||||
l = "eza --long --header --group-directories-first --icons always";
|
|
||||||
la = "l -a";
|
|
||||||
g = "lazygit";
|
|
||||||
ns = "nh os switch";
|
|
||||||
rf = "nix flake init --template 'https://flakehub.com/f/the-nix-way/dev-templates/*#rust' && direnv allow";
|
|
||||||
vi = "nvim";
|
|
||||||
vim = "nvim";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
imports = [ ];
|
|
||||||
|
|
||||||
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue