feat(dev): add deploy justfile recipe

This commit is contained in:
uku 2024-05-11 10:40:16 +02:00
parent 3ab5c19968
commit c60e8df3e3
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,7 @@
alias c := check
alias s := switch
alias d := deploy
default:
@just --choose
@ -12,3 +13,6 @@ check:
[linux]
switch *args:
sudo nixos-rebuild switch --flake . --keep-going {{ args }}
deploy system:
deploy -s .#{{ system }}

View file

@ -1,7 +1,7 @@
{
perSystem = {pkgs, ...}: {
devShells.default = pkgs.mkShellNoCC {
packages = with pkgs; [just nil];
packages = with pkgs; [just nil deploy-rs];
};
formatter = pkgs.alejandra;