summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-05 15:22:39 -0700
committerFuwn <[email protected]>2024-10-05 15:22:39 -0700
commitdf4e166a5ec9d227cabc03a0b548576cf855be1a (patch)
tree733aa0e5dd237c5ea73877564d24cfbcc0ae014f /justfile
parentsuzuri: use tsutsumi path (diff)
downloadnixos-config-df4e166a5ec9d227cabc03a0b548576cf855be1a.tar.xz
nixos-config-df4e166a5ec9d227cabc03a0b548576cf855be1a.zip
just: move justfile to just-flake in flake.nix
Diffstat (limited to 'justfile')
-rw-r--r--justfile42
1 files changed, 5 insertions, 37 deletions
diff --git a/justfile b/justfile
index ad19269..80c4fae 100644
--- a/justfile
+++ b/justfile
@@ -1,38 +1,6 @@
-default:
- @just --list
-
-action target action:
- git add . && nix develop --command rui --allow-unfree --allow-insecure {{target}} {{action}} -- --impure
-
-build target:
- just action {{target}} build
-
-switch target:
- just action {{target}} switch
-
-news user='ebisu':
- rui home news --user {{user}} -- --impure
-
-check:
- nix develop --command nix flake check
+# See flake.nix (just-flake)
+import 'just-flake.just'
-push message:
- git add . && git commit -m "{{message}}" && git push origin main
-
-commit message:
- git add . && git commit -m "{{message}}"
-
-restore:
- git restore --staged . && git restore .
-
-deploy hostname user='root':
- 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}}
+# Display the list of recipes
+default:
+ @just --list