2023-08-03 00:54:50 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2023-06-28 20:48:01 +00:00
|
|
|
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";
|
2023-07-13 20:35:19 +00:00
|
|
|
ll = "ls -al";
|
2023-07-21 20:38:51 +00:00
|
|
|
nix-shell = "nix-shell --run nu";
|
2023-06-28 20:48:01 +00:00
|
|
|
};
|
2023-09-05 21:23:08 +00:00
|
|
|
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 *
|
2023-08-20 21:23:29 +00:00
|
|
|
|
2023-09-24 06:28:57 +00:00
|
|
|
use ${jolheiser.nur.kv}/share/kv-completions.nu *
|
2023-12-22 01:12:09 +00:00
|
|
|
use ${jolheiser.tmpl}/share/tmpl-completions.nu *
|
2023-06-28 20:48:01 +00:00
|
|
|
'';
|
2023-08-03 00:54:50 +00:00
|
|
|
extraEnv = ''
|
2023-08-12 00:48:14 +00:00
|
|
|
$env.GOPATH = "${config.xdg.dataHome}/go"
|
|
|
|
$env.PATH = ($env.PATH | split row (char esep) | prepend '${config.xdg.dataHome}/go/bin')
|
2023-08-03 00:54:50 +00:00
|
|
|
'';
|
2023-06-28 20:48:01 +00:00
|
|
|
};
|
|
|
|
xdg.configFile = {
|
|
|
|
"nushell/jolheiser.nu".source = ./nushell/jolheiser.nu;
|
|
|
|
"nushell/zoxide.nu".source = ./nushell/zoxide.nu;
|
|
|
|
"nushell/ohmyposh.nu".source = ./nushell/ohmyposh.nu;
|
|
|
|
};
|
|
|
|
}
|