Makefile : Separate system and user install.

This commit is contained in:
Dmitry Voronin 2024-09-07 21:10:45 +03:00
parent 6dcbbf200c
commit 2dba34da9a
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -29,8 +29,12 @@ fix-hm:
systemctl restart home-manager-dasha.service; \ systemctl restart home-manager-dasha.service; \
mv /etc/nix/nix.conf_ /etc/nix/nix.conf mv /etc/nix/nix.conf_ /etc/nix/nix.conf
install: install-system:
curl -L https://nixos.org/nix/install | sh /dev/stdin --daemon curl -L https://nixos.org/nix/install | sh /dev/stdin --daemon
printf "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
install-user:
curl -L https://nixos.org/nix/install | sh /dev/stdin --no-daemon
mkdir -p $$HOME/.config/nix mkdir -p $$HOME/.config/nix
printf "experimental-features = nix-command flakes" > $$HOME/.config/nix/nix.conf printf "experimental-features = nix-command flakes" > $$HOME/.config/nix/nix.conf