nix/Makefile

39 lines
585 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-04 02:16:48 +03:00
switch:
2024-04-03 14:27:56 +03:00
nixos-rebuild switch $(options) --flake $(flake)
.PHONY: update
update:
nix flake update
.PHONY: live
2024-04-03 14:49:43 +03:00
live: check
2024-04-27 00:02:00 +03:00
nix build -o live $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
2024-04-03 14:27:56 +03:00
.PHONY: android
android:
nix-on-droid switch --flake $(flake)
.PHONY: check
check:
nix flake check
2024-04-06 03:03:58 +03:00
.PHONY: trace
trace:
nix flake check --show-trace
2024-04-03 14:27:56 +03:00
.PHONY: show
show:
nix flake show