chore: replace deploy-rs with nixinate
This commit is contained in:
parent
d6b34b37e4
commit
fca8b6d29c
7 changed files with 63 additions and 102 deletions
14
justfile
14
justfile
|
@ -1,21 +1,15 @@
|
|||
# Shamelessly taken from https://github.com/getchoo/flake/blob/d80d49cc7652ea84810c4688212c48277dfc71be/justfile
|
||||
|
||||
alias c := check
|
||||
alias s := switch
|
||||
alias d := deploy
|
||||
|
||||
default:
|
||||
@just --choose
|
||||
|
||||
check:
|
||||
nix flake check
|
||||
|
||||
[linux]
|
||||
switch *args:
|
||||
sudo nixos-rebuild switch --flake . --keep-going {{ args }}
|
||||
@sudo -v
|
||||
sudo nixos-rebuild switch --flake . --keep-going {{args}} --log-format internal-json |& nom --json
|
||||
|
||||
deploy system:
|
||||
deploy -s .#{{ system }}
|
||||
nix run .#{{system}}
|
||||
|
||||
lint *args:
|
||||
statix check -i flake.nix **/hardware-configuration.nix {{ args }}
|
||||
statix check -i flake.nix **/hardware-configuration.nix {{args}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue