summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-20 05:48:45 -0700
committerFuwn <[email protected]>2024-09-20 05:48:45 -0700
commit98aa8dbbd7087594b51fcd6ffb20f76d1e3dd54b (patch)
tree436246c0314d585a74f1906f07d893a76f766742
parentserver: modular container engine (diff)
downloadnixos-config-98aa8dbbd7087594b51fcd6ffb20f76d1e3dd54b.tar.xz
nixos-config-98aa8dbbd7087594b51fcd6ffb20f76d1e3dd54b.zip
just: ensure git add
-rw-r--r--justfile12
1 files changed, 6 insertions, 6 deletions
diff --git a/justfile b/justfile
index c2684ce..128815c 100644
--- a/justfile
+++ b/justfile
@@ -6,12 +6,10 @@ default:
@just --list
os hostname='kansai':
- git add .
- rui os switch --hostname {{hostname}} -- --impure
+ git add . && rui os switch --hostname {{hostname}} -- --impure
home user='ebisu':
- git add .
- rui home switch --user {{user}} -- --impure
+ git add . && rui home switch --user {{user}} -- --impure
news user='ebisu':
rui home news --user {{user}}
@@ -26,11 +24,13 @@ restore:
git restore --staged . && git restore .
deploy hostname='himeji' user='root':
- nixos-rebuild \
+ git add . && nixos-rebuild \
--flake .#{{hostname}} \
--target-host {{user}}@{{hostname}} \
--use-remote-sudo \
switch
provision ip hostname:
- doas nix run github:nix-community/nixos-anywhere -- --flake .#{{hostname}} root@{{ip}}
+ doas nix run github:nix-community/nixos-anywhere \
+ -- \
+ --flake .#{{hostname}} root@{{ip}}