Skip to content

Commit ed01c89

Browse files
make: use determinate-system to install nix
1 parent 0b40cf7 commit ed01c89

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Makefile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ eval "$$(/opt/homebrew/bin/brew shellenv)"
1010
endef
1111
export source_brew
1212

13-
define source_nix
14-
# Nix
15-
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
16-
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
17-
fi
18-
# End Nix
19-
endef
20-
export source_nix
21-
2213
is_darwin:
2314
ifneq ($(uname), Darwin)
2415
@echo Darwin command only; exit 1
@@ -67,8 +58,7 @@ darwin/brew-install: is_darwin
6758

6859
darwin/nix-install: is_darwin
6960
@echo installing nix...
70-
@sudo curl -L https://nixos.org/nix/install | sh -s -- --daemon --yes
71-
@echo "$$source_nix" >> ~/.zprofile
61+
@curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
7262

7363
darwin/nix-darwin-install: is_darwin
7464
@echo installing nix-darwin...

0 commit comments

Comments
 (0)