nix/Makefile

45 lines
736 B
Makefile
Raw Normal View History

2024-07-06 22:45:57 +03:00
options = --option eval-cache false --fallback
2024-04-03 14:27:56 +03:00
flake = .
.PHONY: boot
2024-05-24 19:26:23 +03:00
boot:
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-05-24 19:28:16 +03:00
live:
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-05-03 12:44:16 +03:00
android:
nix-on-droid switch --flake $(flake)
cp ~/.termux/_font.ttf ~/.termux/font.ttf
cp ~/.termux/_colors.properties ~/.termux/colors.properties
2024-04-03 14:27:56 +03:00
.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