Skip to content

gustavomedeiross/nix-machina

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix Machina

Nix configuration for my computer

Bootstrap MacOS Computer

1. Install Nix

sh <(curl -L https://nixos.org/nix/install) --daemon
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
nix-channel --update

2. Install Home-Manager

nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update

3. Install Xcode CLI tools

xcode-select --install

4. Install Homebrew and add it to your shell env

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.local/zsh.sh # or ~/.zshrc if you're not using my dotfiles

5. Install nix-darwin

nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer

6. Download this repo and build the environment

git clone [email protected]:gustavomdeiros/nix-machina.git
./bin/build.sh

Update deps

1. Download latest updates

nix flake update

2. Build the environment

./bin/build.sh

About

Nix configuration for my machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published