From c60e8df3e3508acb1416269c4cbfa76551ab6c90 Mon Sep 17 00:00:00 2001 From: uku Date: Sat, 11 May 2024 10:40:16 +0200 Subject: [PATCH] feat(dev): add deploy justfile recipe --- justfile | 4 ++++ parts/dev.nix | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 86a41bf..37a8a0e 100644 --- a/justfile +++ b/justfile @@ -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 }} \ No newline at end of file diff --git a/parts/dev.nix b/parts/dev.nix index 358c49a..dc23e22 100644 --- a/parts/dev.nix +++ b/parts/dev.nix @@ -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;