justfile | add boot target
This commit is contained in:
parent
6f7609ab6d
commit
8865984db6
1 changed files with 7 additions and 0 deletions
7
justfile
7
justfile
|
|
@ -13,6 +13,13 @@ switch hostname=(HOSTNAME):
|
|||
@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!
|
||||
world:
|
||||
@colmena --impure exec "locate home-manager-backup | sort -u | xargs rm -f"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue