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

https://github.com/tahirmurata/nix-darwin

Nix for MacBook Air
https://github.com/tahirmurata/nix-darwin

macos nix nix-darwin

Last synced: 2 months ago
JSON representation

Nix for MacBook Air

Awesome Lists containing this project

README

        



Nix-Darwin

Nix for MacBook Air

## Usage
1. Install Command Line Tools

```sh
xcode-select --install
```
2. Install Rosetta 2

```sh
softwareupdate --install-rosetta --agree-to-license
```
3. Install Nix

Make sure to enable full disk access for your terminal.

```sh
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
sh -s -- install
```
4. Clone the repository into `~/.dotfiles`:

```sh
git clone https://github.com/tahirmurata/nix-darwin.git ~/nix
```
5. Run the `link.sh` script:

```sh
~/nix/link.sh
```
6. Install `nix-darwin`:

Since darwin-rebuild isn't installed yet, the command uses nix to run darwin-rebuild directly from the nixpkgs repository.
```sh
nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/nix
```
7. Setup git with gh:

```sh
gh auth login && gh auth setup-git
```

## License
This repository is released into the public domain under the [Unlicense license](UNLICENSE)