40 lines
1.4 KiB
Nix
40 lines
1.4 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
programs.nushell = {
|
|
enable = true;
|
|
configFile.source = ./nushell/config.nu;
|
|
envFile.source = ./nushell/env.nu;
|
|
shellAliases = {
|
|
cat = "bat";
|
|
find = "fd";
|
|
df = "duf";
|
|
du = "dust -b -d 1";
|
|
ll = "ls -al";
|
|
nix-shell = "nix-shell --run nu";
|
|
};
|
|
extraConfig = with pkgs; ''
|
|
use ${nu_scripts}/share/nu_scripts/custom-completions/bitwarden-cli/bitwarden-cli-completions.nu *
|
|
use ${nu_scripts}/share/nu_scripts/custom-completions/btm/btm-completions.nu *
|
|
use ${nu_scripts}/share/nu_scripts/custom-completions/git/git-completions.nu *
|
|
use ${nu_scripts}/share/nu_scripts/custom-completions/glow/glow-completions.nu *
|
|
use ${nu_scripts}/share/nu_scripts/custom-completions/just/just-completions.nu *
|
|
use ${nu_scripts}/share/nu_scripts/custom-completions/nix/nix-completions.nu *
|
|
|
|
use ${jolheiser.nur.kv}/share/kv-completions.nu *
|
|
use ${jolheiser.nur.tmpl}/share/tmpl-completions.nu *
|
|
'';
|
|
extraEnv = ''
|
|
$env.GOPATH = "${config.xdg.dataHome}/go"
|
|
$env.PATH = ($env.PATH | split row (char esep) | prepend '${config.xdg.dataHome}/go/bin')
|
|
'';
|
|
};
|
|
xdg.configFile = {
|
|
"nushell/jolheiser.nu".source = ./nushell/jolheiser.nu;
|
|
"nushell/zoxide.nu".source = ./nushell/zoxide.nu;
|
|
"nushell/ohmyposh.nu".source = ./nushell/ohmyposh.nu;
|
|
};
|
|
}
|