From 965a945e508df27a4807afc72adffb5679c85490 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Thu, 18 Apr 2024 23:15:07 -0500 Subject: [PATCH] makefile: pocket2 clean before and after push --- makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 9a7c2d4..3af1947 100644 --- a/makefile +++ b/makefile @@ -33,7 +33,10 @@ pull: # pocket2 does not really have enough space to do this locally pocket2: @ssh pocket2 "locate home-manager-backup | sort -u | xargs rm -f" - nixos-rebuild switch --flake .#pocket2 --target-host root@pocket2 + @ssh pocket2 "doas nix-collect-garbage --quiet --log-format bar --no-build-output --delete-old" + @nixos-rebuild switch --flake .#pocket2 --target-host root@pocket2 + @ssh pocket2 "doas nix-collect-garbage --quiet --log-format bar --no-build-output --delete-old" + @ssh pocket2 "doas nix store optimise" ci: git commit -m"updates from makefile" --all