Makefile : Separate install and install hm.

This commit is contained in:
Dmitry Voronin 2024-09-07 18:19:41 +03:00
parent aa318344ad
commit d3173001ce
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -30,12 +30,14 @@ fix-hm:
mv /etc/nix/nix.conf_ /etc/nix/nix.conf mv /etc/nix/nix.conf_ /etc/nix/nix.conf
install: install:
sh <(curl -L https://nixos.org/nix/install) --daemon curl -L https://nixos.org/nix/install | sh /dev/stdin --daemon
mkdir -p $$HOME/.config/nix
printf "experimental-features = nix-command flakes" > $$HOME/.config/nix/nix.conf
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
mkdir -p $$HOME/.config/nix
printf "experimental-features = nix-command flakes" > $$HOME/.config/nix/nix.conf
.PHONY: home .PHONY: home
home: home: