mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-31 11:15:04 +08:00
20 lines
479 B
Makefile
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}}
|