2024-01-18 08:36:06 +01:00
|
|
|
{ config, pkgs, flakeDir, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# Configure Bash
|
|
|
|
programs.bash = {
|
|
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
profileExtra = ''
|
|
|
|
#if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
|
|
|
|
# exec Hyprland
|
|
|
|
#fi
|
|
|
|
'';
|
|
|
|
sessionVariables = {
|
|
|
|
|
|
|
|
};
|
|
|
|
shellAliases = {
|
|
|
|
sv="sudo vim";
|
|
|
|
flake-rebuild="sudo nixos-rebuild switch --flake ${flakeDir}";
|
2024-01-23 23:07:04 +01:00
|
|
|
flake-update="sudo nix flake update ${flakeDir}";
|
2024-01-18 08:36:06 +01:00
|
|
|
gcCleanup="nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
|
|
|
v="vim";
|
|
|
|
ls="lsd";
|
|
|
|
ll="lsd -l";
|
|
|
|
la="lsd -a";
|
|
|
|
lal="lsd -al";
|
|
|
|
".."="cd ..";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|