nixos-config/justfile
Sridhar Ratnakumar 6ba1455928 just: add fmt
2024-02-24 17:50:14 -05:00

20 lines
479 B
Makefile

default:
@just --list
fmt:
nix fmt
# Remote deploy to a host
remote-deploy host='linux-builder':
nixos-rebuild switch --fast --use-remote-sudo \
--flake .#{{host}} \
--target-host $USER@{{host}} \
--build-host $USER@{{host}}
# First install on a remote machine
remote-install host='linux-builder':
nix run github:nix-community/nixos-anywhere \
-- \
--build-on-remote \
--flake .#{{host}} \
root@{{host}}