oizys/Makefile

17 lines
476 B
Makefile
Raw Normal View History

2023-01-24 17:22:12 -06:00
boot:
sudo nixos-rebuild boot --flake .
2022-11-23 09:32:58 -06:00
## switch | perform nixos rebuild
2022-11-04 11:54:07 -05:00
switch:
2023-01-24 12:09:22 -06:00
sudo nixos-rebuild switch --flake .
2022-11-23 09:32:58 -06:00
## lint | format *.nix
2022-11-04 11:54:07 -05:00
lint:
nixpkgs-fmt .
2023-01-24 17:22:12 -06:00
.PHONY: lint switch boot
2022-11-23 09:32:58 -06:00
USAGE := {a.style('==>','bold')} {a.style('flakes ftw','header')} {a.style('<==','bold')}\n
-include .task.mk
$(if $(filter help,$(MAKECMDGOALS)),$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v22.9.28/task.mk -o .task.mk))