feat(dev): add deploy justfile recipe
This commit is contained in:
parent
3ab5c19968
commit
c60e8df3e3
2 changed files with 5 additions and 1 deletions
4
justfile
4
justfile
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
alias c := check
|
alias c := check
|
||||||
alias s := switch
|
alias s := switch
|
||||||
|
alias d := deploy
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@just --choose
|
@just --choose
|
||||||
|
@ -12,3 +13,6 @@ check:
|
||||||
[linux]
|
[linux]
|
||||||
switch *args:
|
switch *args:
|
||||||
sudo nixos-rebuild switch --flake . --keep-going {{ args }}
|
sudo nixos-rebuild switch --flake . --keep-going {{ args }}
|
||||||
|
|
||||||
|
deploy system:
|
||||||
|
deploy -s .#{{ system }}
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
perSystem = {pkgs, ...}: {
|
perSystem = {pkgs, ...}: {
|
||||||
devShells.default = pkgs.mkShellNoCC {
|
devShells.default = pkgs.mkShellNoCC {
|
||||||
packages = with pkgs; [just nil];
|
packages = with pkgs; [just nil deploy-rs];
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.alejandra;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue