2024-01-29 08:48:15 +01:00
|
|
|
{
|
|
|
|
programs = {
|
|
|
|
nushell = {
|
|
|
|
enable = true;
|
2024-01-29 10:14:39 +01:00
|
|
|
environmentVariables = {
|
|
|
|
PASSWORD_STORE_DIR = "([$env.HOME, '.password-store'] | str join '/')";
|
|
|
|
};
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
loginFile.text = ''
|
|
|
|
if (tty) == "/dev/tty1" {
|
|
|
|
sway
|
|
|
|
}
|
|
|
|
'';
|
2024-01-29 08:48:15 +01:00
|
|
|
extraConfig = ''
|
|
|
|
$env.config = {
|
|
|
|
show_banner: false,
|
|
|
|
completions: {
|
2024-01-29 11:56:19 +01:00
|
|
|
quick: true
|
|
|
|
partial: true
|
|
|
|
algorithm: "fuzzy"
|
2024-01-29 08:48:15 +01:00
|
|
|
}
|
2024-01-29 10:14:39 +01:00
|
|
|
}
|
2024-01-29 10:23:54 +01:00
|
|
|
$env.PATH = ($env.PATH | split row (char esep) |
|
|
|
|
append ([$env.HOME, '.local', 'bin'] | str join '/')
|
|
|
|
)
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|