Makefile : Add housekeep target.
This commit is contained in:
parent
d20cc08036
commit
965f1afee7
5
Makefile
5
Makefile
|
@ -34,6 +34,10 @@ gc:
|
||||||
home:
|
home:
|
||||||
home-manager switch -b old --flake $(flake)#$$USER
|
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
|
# SOURCE: https://github.com/DeterminateSystems/nix-installer
|
||||||
install-system:
|
install-system:
|
||||||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
||||||
|
@ -64,6 +68,7 @@ switch: fix-ulimit
|
||||||
update:
|
update:
|
||||||
nix flake update
|
nix flake update
|
||||||
|
|
||||||
|
# NOTE: Run `housekeep` target to fix git fsck issues.
|
||||||
verify:
|
verify:
|
||||||
git verify-commit HEAD
|
git verify-commit HEAD
|
||||||
git fsck
|
git fsck
|
||||||
|
|
Loading…
Reference in a new issue