feat: Add nix garbage collector to just clean-system

Closes #300
This commit is contained in:
Kyle Gospodnetich 2023-09-15 00:47:41 -07:00
parent 5b4c7a85cf
commit 11c89fd8f9
2 changed files with 8 additions and 0 deletions

View File

@ -7,9 +7,13 @@ update-system:
# Clean up old containers and flatpaks
clean-system:
#!/usr/bin/env bash
podman system prune -a
flatpak uninstall --unused
rpm-ostree cleanup -bm
if [ -x "$(command -v nix-store)" ]; then
nix-store --gc
fi
# Boot into this device's BIOS/UEFI screen
boot-to-bios:

View File

@ -7,9 +7,13 @@ update-system:
# Clean up old containers and flatpaks
clean-system:
#!/usr/bin/env bash
podman system prune -a
flatpak uninstall --unused
rpm-ostree cleanup -bm
if [ -x "$(command -v nix-store)" ]; then
nix-store --gc
fi
# Boot into this device's BIOS/UEFI screen
boot-to-bios: