Makefile : Add housekeep target.
This commit is contained in:
parent
d20cc08036
commit
965f1afee7
5
Makefile
5
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue