2024-07-06 22:45:57 +03:00
|
|
|
options = --option eval-cache false --fallback
|
2024-04-03 14:27:56 +03:00
|
|
|
flake = .
|
|
|
|
|
2024-07-31 23:43:50 +03:00
|
|
|
android:
|
|
|
|
nix-on-droid switch --flake $(flake)
|
|
|
|
cp ~/.termux/_font.ttf ~/.termux/font.ttf
|
|
|
|
cp ~/.termux/_colors.properties ~/.termux/colors.properties
|
|
|
|
|
2024-05-24 19:26:23 +03:00
|
|
|
boot:
|
2024-04-03 14:27:56 +03:00
|
|
|
nixos-rebuild boot $(options) --flake $(flake)
|
|
|
|
|
2024-08-02 23:49:19 +03:00
|
|
|
boot-no-nixconf:
|
2024-07-31 23:43:50 +03:00
|
|
|
mv /etc/nix/nix.conf /etc/nix/nix.conf_
|
|
|
|
nixos-rebuild boot $(options) --flake $(flake)
|
|
|
|
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
|
2024-04-03 14:27:56 +03:00
|
|
|
|
2024-07-31 23:43:50 +03:00
|
|
|
check:
|
|
|
|
nix flake check
|
2024-04-03 14:27:56 +03:00
|
|
|
|
2024-07-31 23:43:50 +03:00
|
|
|
# HACK: https://github.com/nix-community/home-manager/issues/5589
|
|
|
|
fix-hm-root:
|
|
|
|
mv /etc/nix/nix.conf /etc/nix/nix.conf_
|
|
|
|
systemctl restart home-manager-root.service
|
|
|
|
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
|
|
|
|
|
|
|
|
install-nix:
|
|
|
|
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
|
|
|
|
|
|
|
install-hm:
|
|
|
|
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
|
|
|
nix-channel --update
|
|
|
|
nix-shell '<home-manager>' -A install
|
2024-04-03 14:27:56 +03:00
|
|
|
|
2024-08-16 06:10:58 +03:00
|
|
|
.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
|
|
|
|
2024-07-31 23:43:50 +03:00
|
|
|
reboot: boot
|
|
|
|
reboot
|
2024-04-03 14:27:56 +03:00
|
|
|
|
2024-07-31 23:43:50 +03:00
|
|
|
show:
|
|
|
|
nix flake show
|
|
|
|
|
|
|
|
switch:
|
|
|
|
nixos-rebuild switch $(options) --flake $(flake)
|
2024-04-03 14:27:56 +03:00
|
|
|
|
2024-04-06 03:03:58 +03:00
|
|
|
trace:
|
|
|
|
nix flake check --show-trace
|
|
|
|
|
2024-07-31 23:43:50 +03:00
|
|
|
update:
|
|
|
|
nix flake update
|
2024-04-28 23:29:50 +03:00
|
|
|
|
|
|
|
verify:
|
|
|
|
git verify-commit HEAD
|
2024-08-17 14:55:03 +03:00
|
|
|
|
|
|
|
# Untested.
|
|
|
|
vm:
|
|
|
|
nix run $(options) $(flake)#nixosConfigurations.${nixosConfig.networking.hostName}.config.system.build.vm
|