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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue