nix/Makefile

43 lines
654 B
Makefile
Raw Normal View History

2024-04-03 14:27:56 +03:00
options = --option eval-cache false
flake = .
.PHONY: boot
2024-04-28 23:29:50 +03:00
boot: check verify
2024-04-03 14:27:56 +03:00
nixos-rebuild boot $(options) --flake $(flake)
.PHONY: reboot
reboot: boot
reboot
.PHONY: switch
2024-04-28 23:45:20 +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-28 23:29:50 +03:00
live: check verify
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
2024-04-28 23:29:50 +03:00
android: verify
2024-04-03 14:27:56 +03:00
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
2024-04-28 23:29:50 +03:00
.PHONY: verify
verify:
git verify-commit HEAD