diff options
| author | seth <[email protected]> | 2023-09-24 11:22:20 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-24 11:22:20 -0400 |
| commit | 658342ace06c0cf47ab304433d7a03d163c713b9 (patch) | |
| tree | 74d4489c4082edb0f205326f9bff5de02c384595 /justfile | |
| parent | e5800f207fc2710b64a9f180c7a0d192f664f47e (diff) | |
justfile: add switch-and-deploy recipe
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 . |
