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
build:
nixos-rebuild build --flake .
.PHONY: test all switch update reload
test:
sudo nixos-rebuild test --flake .
switch:
sudo nixos-rebuild switch --flake .
update:
nix flake update --commit-lock-file
all:
-git pull --ff-only
sudo nixos-rebuild switch --flake . --update-input nixpkgs
make reload
reload:
-hyprctl reload