dotfiles/home/programs/nushell.nix

32 lines
676 B
Nix
Raw Normal View History

2023-09-09 17:54:02 +00:00
{
programs.nushell = {
enable = true;
shellAliases = {
nrsw = "nixpkgs-switch";
2023-09-10 15:36:32 +00:00
upa = "update-all";
ngc = "nix-garbage-collect";
2023-09-09 17:54:02 +00:00
nsr = "sudo nix-store --verify --check-contents --repair";
};
configFile = {
text = ''
$env.config = {
show_banner: false
keybindings: []
}
2023-09-10 15:36:32 +00:00
$env.PATH = ($env.PATH |split row ":"| append $"($env.HOME)/.bin")
use ~/.config/nushell/scripts/nix-utils.nu *
use ~/.config/nushell/scripts/media-downloader.nu *
2023-09-09 17:54:02 +00:00
'';
};
};
2023-09-10 15:36:32 +00:00
xdg.configFile."nushell/scripts" = {
source = ../config/nushell/scripts;
recursive = true;
};
2023-09-09 17:54:02 +00:00
}