Update Makefile rules
make all fetches from git and updates nixpkgs when running nixos-rebuild switch.
This commit is contained in:
parent
6a1260f540
commit
48dc2ef95c
14
Makefile
14
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue