Makefile : Refactor.

This commit is contained in:
Dmitry Voronin 2024-08-30 14:58:40 +03:00
parent 9b43f6845b
commit c009c6edc3
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,6 +1,9 @@
options = --option eval-cache false --fallback options = --option eval-cache false --fallback
flake = . flake = .
help:
@printf "Please specify a target.\n"
android: android:
nix-on-droid switch --flake $(flake) nix-on-droid switch --flake $(flake)
cp ~/.termux/_font.ttf ~/.termux/font.ttf cp ~/.termux/_font.ttf ~/.termux/font.ttf
@ -24,10 +27,8 @@ fix-hm-root:
systemctl restart home-manager-root.service; \ systemctl restart home-manager-root.service; \
mv /etc/nix/nix.conf_ /etc/nix/nix.conf mv /etc/nix/nix.conf_ /etc/nix/nix.conf
install-nix: install:
sh <(curl -L https://nixos.org/nix/install) --no-daemon sh <(curl -L https://nixos.org/nix/install) --daemon
install-hm:
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update nix-channel --update
nix-shell '<home-manager>' -A install nix-shell '<home-manager>' -A install