nichts/modules/programs/cli/nushell.nix

30 lines
568 B
Nix
Raw Normal View History

2024-09-09 19:51:13 +02:00
{
config,
lib,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
inherit (lib) mkIf;
cfg = config.modules.system.programs.nushell;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.nushell = {
enable = true;
package = pkgs.nushell;
2024-09-09 19:51:26 +02:00
shellAliases = {
c = "clear";
cc = "cd; clear";
mv = "mv -iv";
rm = "trash -v";
lg = "lazygit";
v = "nvim";
h = "hx";
e = "emacs";
2024-09-09 19:51:13 +02:00
};
};
};
};
}