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

36 lines
889 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 = {
config = ''{
2024-04-17 12:06:01 +02:00
show_banner: false,
completions: {
quick: true
partial: true
algorithm: "fuzzy"
}
}
'';
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-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";
ssh = "TERM=xterm-256color ssh";
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
};
}