nix/Makefile

39 lines
620 B
Makefile
Raw Normal View History

2024-04-03 14:27:56 +03:00
options = --option eval-cache false
flake = .
.PHONY: boot
2024-04-03 14:49:43 +03:00
boot: check
2024-04-03 14:27:56 +03:00
nixos-rebuild boot $(options) --flake $(flake)
.PHONY: reboot
reboot: boot
reboot
.PHONY: switch
2024-04-03 14:49:43 +03:00
switch: check
2024-04-03 14:27:56 +03:00
nixos-rebuild switch $(options) --flake $(flake)
.PHONY: trace
2024-04-03 14:49:43 +03:00
trace: check
2024-04-03 14:27:56 +03:00
nixos-rebuild boot $(options) --show-trace --flake $(flake)
.PHONY: update
update:
nix flake update
.PHONY: live
2024-04-03 14:49:43 +03:00
live: check
2024-04-03 14:27:56 +03:00
nix build $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
.PHONY: android
android:
nix-on-droid switch --flake $(flake)
.PHONY: check
check:
nix flake check
.PHONY: show
show:
nix flake show