feat(zsh): prune saved nix configs in bootloader on each call of os-update or os-upgrade

This commit is contained in:
EinEtwas 2024-11-20 11:01:56 +01:00
parent aa84c87845
commit 95ff967363
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0

View file

@ -7,8 +7,8 @@
autocd = true;
shellAliases = {
os-update = "nh os switch /home/rhea/nix-config/";
os-upgrade = "cd ~/nix-config && nix flake update && nh os switch /home/rhea/nix-config/";
os-update = "sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +15 && nh os switch /home/rhea/nix-config/";
os-upgrade = "cd ~/nix-config && sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +15 && nix flake update && nh os switch /home/rhea/nix-config/";
light-off = "echo -n \"{\\\"id\\\":1,\\\"method\\\":\\\"setState\\\",\\\"params\\\":{\\\"state\\\":false}}\" | nc -u -w 1 192.168.178.28 38899";
clr = "clear";
power-saver = "powerprofilesctl set power-saver";