mirror of
https://github.com/srid/nixos-config.git
synced 2026-07-16 22:01:33 +08:00
justfile: new deploy
This commit is contained in:
parent
a403762072
commit
cda20a3348
1 changed files with 3 additions and 14 deletions
17
justfile
17
justfile
|
|
@ -4,20 +4,9 @@ default:
|
|||
fmt:
|
||||
treefmt
|
||||
|
||||
# Remote deploy to a host
|
||||
remote-deploy host='parallels-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='parallels-linux-builder':
|
||||
nix run github:nix-community/nixos-anywhere \
|
||||
-- \
|
||||
--build-on-remote \
|
||||
--flake .#{{host}} \
|
||||
root@{{host}}
|
||||
# Deploy to github-runner VM
|
||||
github-runner:
|
||||
colmena apply --build-on-target
|
||||
|
||||
# Run this after editing .sops.yaml
|
||||
sops-updatekeys:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue