configuration.nix/modules/home/programs/nushell/default.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

2024-01-29 08:48:15 +01:00
{
programs = {
nushell = {
enable = true;
2024-01-29 10:14:39 +01:00
environmentVariables = {
2024-04-17 12:06:01 +02:00
config = ''{
show_banner: false,
completions: {
quick: true
partial: true
algorithm: "fuzzy"
}
}
'';
2024-01-29 10:14:39 +01:00
PASSWORD_STORE_DIR = "([$env.HOME, '.password-store'] | str join '/')";
2024-04-17 12:06:01 +02:00
PATH = "($env.PATH | split row (char esep) | append ([$env.HOME, '.local', 'bin'] | str join '/'))";
EDITOR = "nvim";
2024-01-29 10:14:39 +01:00
};
shellAliases = {
gcal = ''
bash -c "cal $(date +%Y)"
'';
la = "ls -al";
ssh = "TERM=xterm-256color ssh";
dev = "nix develop --command $env.SHELL";
torrent = "transmission-remote";
vi = "nvim";
2024-01-29 15:37:54 +01:00
sc = "systemctl";
2024-01-29 10:14:39 +01:00
};
loginFile.text = ''
if (tty) == "/dev/tty1" {
sway
}
'';
2024-01-29 08:48:15 +01:00
};
starship = {
enable = true;
2024-01-29 10:14:39 +01:00
enableNushellIntegration = true;
2024-01-29 08:48:15 +01:00
};
};
}