Update Makefile rules

make all fetches from git and updates nixpkgs when running
nixos-rebuild switch.
This commit is contained in:
Evie Litherland-Smith 2024-03-15 11:21:22 +00:00
parent 6a1260f540
commit 48dc2ef95c

View file

@ -1,16 +1,12 @@
.PHONY: build test switch reload .PHONY: test all switch update reload
build:
nixos-rebuild build --flake .
test: test:
sudo nixos-rebuild test --flake . sudo nixos-rebuild test --flake .
switch: all:
sudo nixos-rebuild switch --flake . -git pull --ff-only
sudo nixos-rebuild switch --flake . --update-input nixpkgs
update: make reload
nix flake update --commit-lock-file
reload: reload:
-hyprctl reload -hyprctl reload