summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSophie Forrest <git@sophieforrest.com>2024-09-11 18:13:56 +1200
committerSophie Forrest <git@sophieforrest.com>2024-09-11 18:13:56 +1200
commit1c756a672b327d45d6e639b9eafc47d8d45d5344 (patch)
tree380f2c2b5d1660412fb8786d3160a679352c1184
parentb3105870389c11cb0dc79bbd71414fd4d0d4e13f (diff)
chore: justfile
-rw-r--r--justfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..53c0f87
--- /dev/null
+++ b/justfile
@@ -0,0 +1,19 @@
+[private]
+default:
+ @just -l
+
+# run flake checks
+check:
+ nix flake check --impure
+
+# format source code
+fmt:
+ nix fmt
+
+# build and switch NixOS configuration, without adding it to the boot menu
+test *FLAGS:
+ cargo nextest run
+
+# updates all flake inputs, or specified inputs
+update *INPUTS:
+ nix flake update {{ INPUTS }}