2024-04-03 14:27:56 +03:00
|
|
|
options = --option eval-cache false
|
|
|
|
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:
|
2024-06-30 03:56:48 +03:00
|
|
|
nix-on-droid switch --flake $(flake)
|
|
|
|
cp ~/.termux/_font.ttf ~/.termux/font.ttf
|
2024-06-30 03:02:19 +03:00
|
|
|
cp ~/.termux/_colors.properties ~/.termux/colors.properties
|
2024-06-30 03:56:48 +03:00
|
|
|
cp ~/.bashrc ~/.bash_profile
|
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
|