Skip to content

Commit

Permalink
install nix
Browse files Browse the repository at this point in the history
  • Loading branch information
cappyzawa committed Feb 1, 2025
1 parent 7122f49 commit e8e3cf3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .zshenv
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
typeset -gx -U path
path=( \
~/.nix-profile/bin(N-/) \
~/bin(N-/) \
/opt/homebrew/bin(N-/) \
/opt/homebrew/opt/ruby/bin(N-/) \
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ brew: ## Install brew
@sh ./etc/scripts/brew.sh
@brew bundle

nix: ## Install Nix
@sh ./etc/scripts/nix.sh

list: ## Show dot files in this repo
@$(foreach val, $(DOTFILES), /bin/ls -dF $(val);)

Expand Down
8 changes: 8 additions & 0 deletions etc/scripts/nix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

if command -v nix &>/dev/null; then
echo "${0}: nix is already installed"
exit 0
fi

/bin/bash -c "$(curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm)"

0 comments on commit e8e3cf3

Please sign in to comment.