2024-02-09 05:32:21 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2024-01-18 08:36:06 +01:00
|
|
|
|
2024-02-17 20:12:34 +01:00
|
|
|
let inherit (import ../../options.nix) flakeDir flakePrev
|
|
|
|
hostname flakeBackup theShell; in
|
2024-02-09 03:51:04 +01:00
|
|
|
lib.mkIf (theShell == "bash") {
|
2024-01-18 08:36:06 +01:00
|
|
|
# Configure Bash
|
|
|
|
programs.bash = {
|
|
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
profileExtra = ''
|
|
|
|
#if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
|
|
|
|
# exec Hyprland
|
|
|
|
#fi
|
|
|
|
'';
|
2024-01-24 06:32:20 +01:00
|
|
|
initExtra = ''
|
|
|
|
neofetch
|
2024-02-01 09:58:42 +01:00
|
|
|
if [ -f $HOME/.bashrc-personal ]; then
|
|
|
|
source $HOME/.bashrc-personal
|
|
|
|
fi
|
2024-01-24 06:32:20 +01:00
|
|
|
'';
|
2024-01-18 08:36:06 +01:00
|
|
|
sessionVariables = {
|
2024-02-16 05:17:08 +01:00
|
|
|
ZANEYOS = true;
|
|
|
|
FLAKEBACKUP = "${flakeBackup}";
|
|
|
|
FLAKEPREV = "${flakePrev}";
|
2024-01-18 08:36:06 +01:00
|
|
|
};
|
|
|
|
shellAliases = {
|
2024-02-11 00:40:55 +01:00
|
|
|
sv="sudo nvim";
|
2024-03-29 23:20:59 +01:00
|
|
|
flake-rebuild="nh os switch --hostname ${hostname}";
|
|
|
|
flake-update="nh os switch --hostname ${hostname} --update";
|
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";
|
2024-02-05 21:18:53 +01:00
|
|
|
v="nvim";
|
2024-01-18 08:36:06 +01:00
|
|
|
ls="lsd";
|
|
|
|
ll="lsd -l";
|
|
|
|
la="lsd -a";
|
|
|
|
lal="lsd -al";
|
|
|
|
".."="cd ..";
|
2024-02-18 02:17:13 +01:00
|
|
|
neofetch="neofetch --ascii ~/.config/ascii-neofetch";
|
2024-01-18 08:36:06 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|