2023-11-14 00:56:27 +01:00
|
|
|
# Shamelessly taken from https://github.com/getchoo/flake/blob/d80d49cc7652ea84810c4688212c48277dfc71be/justfile
|
|
|
|
|
|
|
|
alias c := check
|
|
|
|
alias s := switch
|
2024-05-11 10:40:16 +02:00
|
|
|
alias d := deploy
|
2023-11-14 00:56:27 +01:00
|
|
|
|
|
|
|
default:
|
|
|
|
@just --choose
|
|
|
|
|
|
|
|
check:
|
|
|
|
nix flake check
|
|
|
|
|
|
|
|
[linux]
|
|
|
|
switch *args:
|
|
|
|
sudo nixos-rebuild switch --flake . --keep-going {{ args }}
|
2024-05-11 10:40:16 +02:00
|
|
|
|
|
|
|
deploy system:
|
2024-05-18 12:35:02 +02:00
|
|
|
deploy -s .#{{ system }}
|
|
|
|
|
|
|
|
lint *args:
|
|
|
|
statix check -i flake.nix **/hardware-configuration.nix {{ args }}
|