21 lines
440 B
Makefile
21 lines
440 B
Makefile
# 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 }}
|
|
|
|
deploy system:
|
|
deploy -s .#{{ system }}
|
|
|
|
lint *args:
|
|
statix check -i flake.nix **/hardware-configuration.nix {{ args }}
|