From 391829eba38af866f147139efb0399e5d0b8b1a3 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Sat, 12 Oct 2024 18:03:13 -0500 Subject: [PATCH] task | add clean-world --- makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index a366174..817badc 100644 --- a/makefile +++ b/makefile @@ -29,7 +29,7 @@ vm: @echo Running iso build @nix build --impure ./#nixosConfigurations.vm.config.system.build.isoImage &> nixos-switch.log || ( grep -E --color '(error|For full logs)' nixos-switch.log && false) -weekly: pull clean update world ci push clean +weekly: pull clean update world ci push clean-world cweekly: clean pull switch clean @@ -44,6 +44,11 @@ clean: @colmena exec nix-collect-garbage --quiet --log-format bar --no-build-output --delete-old @colmena exec nix store optimise +clean-world: + @colmena exec 'home-manager expire-generations "-5 days"' + @colmena exec 'nix-collect-garbage --quiet --log-format bar --no-build-output --delete-old' + @colmena exec 'nix store optimise' + push: @echo pushing to git @git push @@ -63,6 +68,7 @@ ci: @rm -f nixos-switch.log prep: + @alejandra . &> nixos-switch.log || ( cat nixos-switch.log && false) @colmena exec "locate home-manager-backup | sort -u | xargs rm -f" reboot: