summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-18 21:00:49 -0700
committerFuwn <[email protected]>2024-09-18 21:00:49 -0700
commit67cf042f6dc370c2cc6d02a944893f081418264a (patch)
tree406a2971c76a376c1c02219f746b46b04869b349 /justfile
parentboot: emulated arm64 (diff)
downloadnixos-config-67cf042f6dc370c2cc6d02a944893f081418264a.tar.xz
nixos-config-67cf042f6dc370c2cc6d02a944893f081418264a.zip
hosts: himeji
Diffstat (limited to 'justfile')
-rw-r--r--justfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/justfile b/justfile
index fa51a90..7a71c16 100644
--- a/justfile
+++ b/justfile
@@ -24,3 +24,10 @@ commit message:
restore:
git restore --staged . && git restore .
+
+deploy hostname='himeji' user='root':
+ nixos-rebuild \
+ --flake .#{{hostname}} \
+ --target-host {{user}}@{{hostname}} \
+ --use-remote-sudo \
+ switch