This commit is contained in:
DACHXY 2024-12-28 20:16:33 +08:00
parent 04a4c8d998
commit fd48df0d43
5 changed files with 124 additions and 12 deletions

View file

@ -1,14 +1,6 @@
{ pkgs, ... }:
let
shellAlias = {
ls = "exa";
cat = "bat";
rebuild = "sudo nixos-rebuild switch --flake /etc/nixos";
fullClean = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
setWindows = "sudo bootctl set-oneshot auto-windows";
goWin = "sudo bootctl set-oneshot auto-windows && reboot";
goBios = "sudo bootctl set-onshot auto-reboot-to-firmware-setup && reboot";
};
shellAlias = import ./shellAlias.nix;
in
{
programs = {