Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aleksanderbl29/nix-config


https://github.com/aleksanderbl29/nix-config

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# nix-config

- Install Nix
```{bash}
curl -L https://nixos.org/nix/install | sh
```

- Install homebrew

```{bash}
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

- Install Rosetta (if on M-series mac)

```{bash}
softwareupdate --install-rosetta --agree-to-license
```

- Install git

```{bash}
brew intall git
```

- Clone this repo

```{bash}
mkdir ~/src/
cd ~/src/
git clone https://github.com/aleksanderbl29/nix-config nix-mbp
```

- Enable experimental nix features

```{bash}
mkdir -p ~/.config/nix
cat < ~/.config/nix/nix.conf
experimental-features = nix-command flakes
EOF
```

- Nix run

```{bash}
nix run nix-darwin -- switch --flake ~/src/nix-mbp/
```

- Rebuild

```{bash}
darwin-rebuild switch --flake ~/src/nix-mbp/
# Also alias nixswitch
```