chore: replace deploy-rs with nixinate

This commit is contained in:
uku 2024-06-23 22:48:22 +02:00
parent d6b34b37e4
commit fca8b6d29c
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
7 changed files with 63 additions and 102 deletions

View file

@ -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}}