1
0
Fork 0
dotfiles/home/programs/nushell.nix
2023-09-10 17:36:32 +02:00

31 lines
676 B
Nix

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