justfile | remove homemanager cleanup from test/switch
This commit is contained in:
parent
5b51d46cdf
commit
ecd3b6df79
1 changed files with 2 additions and 2 deletions
4
justfile
4
justfile
|
|
@ -10,14 +10,12 @@ test hostname=(HOSTNAME):
|
|||
switch hostname=(HOSTNAME):
|
||||
@nixfmt . &> nixos-switch.log || ( cat nixos-switch.log && false )
|
||||
@rm -f nixos-switch.log
|
||||
@colmena --impure exec --on {{hostname}} "locate home-manager-backup | sort -u | xargs rm -f"
|
||||
@colmena --impure apply --on {{hostname}}
|
||||
|
||||
# Apply config on hostname at next reboot
|
||||
boot:
|
||||
@nixfmt . &> nixos-switch.log || ( cat nixos-switch.log && false )
|
||||
@rm -f nixos-switch.log
|
||||
@colmena --impure exec --on {{HOSTNAME}} "locate home-manager-backup | sort -u | xargs rm -f"
|
||||
@doas nixos-rebuild switch --impure --flake .#{{HOSTNAME}}
|
||||
|
||||
# Build and install the world!
|
||||
|
|
@ -80,6 +78,7 @@ update:
|
|||
# Clean up
|
||||
clean hostname=(HOSTNAME):
|
||||
@echo "Cleaning old entries and store"
|
||||
@colmena --impure exec --on {{hostname}} "locate home-manager-backup | sort -u | xargs rm -f"
|
||||
@# @ssh {{hostname}} 'home-manager expire-generations "-5 days"'
|
||||
@colmena --impure exec --on {{hostname}} 'home-manager expire-generations "-5 days"'
|
||||
@echo "Garbage Collection"
|
||||
|
|
@ -90,6 +89,7 @@ clean hostname=(HOSTNAME):
|
|||
# Clean up the world
|
||||
clean-world:
|
||||
@echo "Cleaning old entries and store"
|
||||
@colmena --impure exec "locate home-manager-backup | sort -u | xargs rm -f"
|
||||
@colmena --impure exec 'home-manager expire-generations "-5 days"'
|
||||
@echo "Garbage Collection"
|
||||
@colmena --impure exec 'nix-collect-garbage --quiet --log-format bar --no-build-output --delete-old'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue