task | add clean-world
This commit is contained in:
parent
d433216a57
commit
391829eba3
1 changed files with 7 additions and 1 deletions
8
makefile
8
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue