2023-11-14 00:56:27 +01:00
|
|
|
alias s := switch
|
2024-05-11 10:40:16 +02:00
|
|
|
alias d := deploy
|
2023-11-14 00:56:27 +01:00
|
|
|
|
|
|
|
check:
|
|
|
|
nix flake check
|
|
|
|
|
|
|
|
switch *args:
|
2024-06-23 22:48:22 +02:00
|
|
|
@sudo -v
|
2024-06-25 11:21:02 +02:00
|
|
|
sudo nixos-rebuild switch --flake . --keep-going {{args}}
|
2024-05-11 10:40:16 +02:00
|
|
|
|
2024-08-28 19:02:22 +02:00
|
|
|
boot *args:
|
|
|
|
@sudo -v
|
|
|
|
sudo nixos-rebuild boot --flake . --keep-going {{args}}
|
|
|
|
|
2024-05-11 10:40:16 +02:00
|
|
|
deploy system:
|
2024-06-23 22:48:22 +02:00
|
|
|
nix run .#{{system}}
|
2024-05-18 12:35:02 +02:00
|
|
|
|
|
|
|
lint *args:
|
2024-06-23 22:48:22 +02:00
|
|
|
statix check -i flake.nix **/hardware-configuration.nix {{args}}
|