46 lines
755 B
Makefile
46 lines
755 B
Makefile
options = --option eval-cache false
|
|
flake = .
|
|
|
|
.PHONY: boot
|
|
boot:
|
|
nixos-rebuild boot $(options) --flake $(flake)
|
|
|
|
.PHONY: reboot
|
|
reboot: boot
|
|
reboot
|
|
|
|
.PHONY: switch
|
|
switch:
|
|
nixos-rebuild switch $(options) --flake $(flake)
|
|
|
|
.PHONY: update
|
|
update:
|
|
nix flake update
|
|
|
|
.PHONY: live
|
|
live:
|
|
nix build -o live $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
|
|
|
|
.PHONY: android
|
|
android:
|
|
nix-on-droid switch --flake $(flake)
|
|
cp ~/.termux/_font.ttf ~/.termux/font.ttf
|
|
cp ~/.termux/_colors.properties ~/.termux/colors.properties
|
|
cp ~/.bashrc ~/.bash_profile
|
|
|
|
.PHONY: check
|
|
check:
|
|
nix flake check
|
|
|
|
.PHONY: trace
|
|
trace:
|
|
nix flake check --show-trace
|
|
|
|
.PHONY: show
|
|
show:
|
|
nix flake show
|
|
|
|
.PHONY: verify
|
|
verify:
|
|
git verify-commit HEAD
|