almost nuked whole sys

This commit is contained in:
danny 2024-12-14 02:27:00 +08:00
parent 43368d1e3a
commit ab917700ee
4 changed files with 24 additions and 27 deletions

View file

@ -897,3 +897,23 @@ $env.config = {
}
]
}
alias cat = bat
alias rebuild = sudo nixos-rebuild switch --flake /etc/nixos/
alias windows = sudo bootctl set-oneshot auto-windows
def toWindows [] {
sudo bootctl set-oneshot auto-windows
reboot
}
def toBIOS [] {
sudo bootctl set-onshot auto-reboot-to-firmware-setup
reboot
}
def fullClean [] {
nix-collect-garbage --delete-old
sudo nix-collect-garbage -d
sudo /run/current-system/bin/switch-to-configuration boot
}