justfile | add nixfmt to switch, workstation, server, webserver

This commit is contained in:
Don Harper 2025-06-15 16:53:16 -05:00
parent ced5943296
commit 92721fd1ee

View file

@ -8,6 +8,8 @@ test hostname=(HOSTNAME):
# Apply config on 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}}
@ -18,16 +20,22 @@ world:
# Build and install the workstations
workstation:
@nixfmt . &> nixos-switch.log || ( cat nixos-switch.log && false )
@rm -f nixos-switch.log
@colmena --impure exec --on @workstation "locate home-manager-backup | sort -u | xargs rm -f"
@colmena --impure apply --on @workstation
# Build and install the servers
server:
@nixfmt . &> nixos-switch.log || ( cat nixos-switch.log && false )
@rm -f nixos-switch.log
@colmena --impure exec --on @server "locate home-manager-backup | sort -u | xargs rm -f"
@colmena --impure apply --on @server
# Build and install the webhosts
web:
@nixfmt . &> nixos-switch.log || ( cat nixos-switch.log && false )
@rm -f nixos-switch.log
@colmena --impure exec --on @web "locate home-manager-backup | sort -u | xargs rm -f"
@colmena --impure apply --on @web