From 658342ace06c0cf47ab304433d7a03d163c713b9 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 24 Sep 2023 11:22:20 -0400 Subject: justfile: add switch-and-deploy recipe --- justfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'justfile') 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 . -- cgit v1.2.3