add dependency

This commit is contained in:
Osman Faruk Bayram 2024-12-02 10:12:53 +03:00
parent f396c65d5f
commit 75e2024965

View file

@ -3,17 +3,17 @@ _default:
check-git: check-git:
# output of the git status --porcelain must be empty # git must be clean
test -z "$(git status --porcelain)" test -z "$(git status --porcelain)"
[linux] [linux]
build *args: build *args: check-git
sudo nixos-rebuild build --flake . {{args}} |& nom sudo nixos-rebuild build --flake . {{args}} |& nom
nvd diff /run/current-system ./result nvd diff /run/current-system ./result
[linux] [linux]
switch *args: switch *args: check-git
sudo nixos-rebuild switch --flake . {{args}} |& nom sudo nixos-rebuild switch --flake . {{args}} |& nom
update: update: