makefile: pocket2 clean before and after push

This commit is contained in:
Don Harper 2024-04-18 23:15:07 -05:00
parent f142807a1f
commit 965a945e50

View file

@ -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