Makefile : Add housekeep target.

This commit is contained in:
Dmitry Voronin 2024-09-30 11:56:30 +03:00
parent d20cc08036
commit 965f1afee7
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -34,6 +34,10 @@ gc:
home:
home-manager switch -b old --flake $(flake)#$$USER
housekeep:
git gc --aggressive --no-cruft --prune=now
git fsck
# SOURCE: https://github.com/DeterminateSystems/nix-installer
install-system:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
@ -64,6 +68,7 @@ switch: fix-ulimit
update:
nix flake update
# NOTE: Run `housekeep` target to fix git fsck issues.
verify:
git verify-commit HEAD
git fsck