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

37 lines
830 B
Nix
Raw Normal View History

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