summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-24 11:22:20 -0400
committerseth <[email protected]>2023-09-24 11:22:20 -0400
commit658342ace06c0cf47ab304433d7a03d163c713b9 (patch)
tree74d4489c4082edb0f205326f9bff5de02c384595
parente5800f207fc2710b64a9f180c7a0d192f664f47e (diff)
justfile: add switch-and-deploy recipe
-rw-r--r--justfile11
1 files changed, 9 insertions, 2 deletions
diff --git a/justfile b/justfile
index 9af8f59..6f4b95a 100644
--- a/justfile
+++ b/justfile
@@ -7,6 +7,7 @@ alias f := fmt
alias l := lint
alias p := pre-commit
alias sw := switch
+alias sd := switch-and-deploy
alias t := test
default:
@@ -37,10 +38,14 @@ dry-run:
darwin-rebuild dry-run --verbose --flake .
fmt:
- pre-commit run alejandra && pre-commit run stylua
+ for fmt in "alejandra" "stylua"; do \
+ pre-commit run "$fmt"; \
+ done
lint:
- pre-commit run statix && pre-commit run deadnix
+ for linter in "nil" "statix" "deadnix"; do \
+ pre-commit run "$linter"; \
+ done
pre-commit:
pre-commit run
@@ -53,6 +58,8 @@ switch:
switch:
darwin-rebuild switch --verbose --flake .
+switch-and-deploy: switch deploy-all
+
[linux]
test:
sudo nixos-rebuild test --verbose --flake .