summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-27 00:57:21 -0700
committerFuwn <[email protected]>2024-09-27 00:57:21 -0700
commit26db5b5629ba759a8f1a9d1d9fa6b6bf392f2e1b (patch)
tree6649955dfc48d7785afaad8063825c1621a69a9a
parenthome: update zed paths (diff)
downloadnixos-config-26db5b5629ba759a8f1a9d1d9fa6b6bf392f2e1b.tar.xz
nixos-config-26db5b5629ba759a8f1a9d1d9fa6b6bf392f2e1b.zip
just: unify os and home action
-rw-r--r--justfile11
1 files changed, 7 insertions, 4 deletions
diff --git a/justfile b/justfile
index 06381d1..2b23ac1 100644
--- a/justfile
+++ b/justfile
@@ -1,11 +1,14 @@
default:
@just --list
-os hostname='kansai':
- git add . && rui --allow-unfree os switch --hostname {{hostname}} -- --impure
+action target action:
+ git add . && rui --allow-unfree {{target}} {{action}} -- --impure
-home user='ebisu':
- git add . && rui --allow-unfree home switch --user {{user}} -- --impure
+build target:
+ just action {{target}} build
+
+switch target:
+ just action {{target}} switch
news user='ebisu':
rui home news --user {{user}} -- --impure