1
0
Fork 0
This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues/pull-requests.
dotnix-archive/apps/nogui/nushell.nix

40 lines
1.4 KiB
Nix
Raw Normal View History

{
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";
ll = "ls -al";
nix-shell = "nix-shell --run nu";
2023-06-28 20:48:01 +00:00
};
extraConfig = ''
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/bitwarden-cli/bitwarden-cli-completions.nu *
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/btm/btm-completions.nu *
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/git/git-completions.nu *
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/glow/glow-completions.nu *
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/just/just-completions.nu *
2023-06-28 20:48:01 +00:00
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/nix/nix-completions.nu *
use ${pkgs.nur.repos.jolheiser.kv}/share/kv-completions.nu *
use ${pkgs.nur.repos.jolheiser.tmpl}/share/tmpl-completions.nu *
2023-06-28 20:48:01 +00:00
'';
extraEnv = ''
$env.GOPATH = "${config.xdg.dataHome}/go"
$env.PATH = ($env.PATH | split row (char esep) | prepend '${config.xdg.dataHome}/go/bin')
'';
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;
};
}