zsh: add nixos-rebuild aliases

This commit is contained in:
stitchy 2024-12-18 07:48:02 +00:00
parent a17eb40eae
commit 19069aba44
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8

View file

@ -137,8 +137,13 @@ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
export CARGO_HOME="$XDG_DATA_HOME"/cargo export CARGO_HOME="$XDG_DATA_HOME"/cargo
alias dosbox="dosbox -conf "$XDG_CONFIG_HOME"/dosbox/dosbox.conf " alias dosbox="dosbox -conf $XDG_CONFIG_HOME/dosbox/dosbox.conf"
alias rbs="reconfig switch"
alias rbb="reconfig build"
reconfig() {
sudo nixos-rebuild --flake "/etc/nixos#$(cat /etc/hostname)" "$@"
}
# Autostart Hyprland after all environmental Variables have been declared # Autostart Hyprland after all environmental Variables have been declared
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then