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
- Host: GitHub
- URL: https://github.com/tahirmurata/nix-darwin
- Owner: tahirmurata
- License: unlicense
- Created: 2024-11-17T14:18:10.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-18T04:55:04.000Z (3 months ago)
- Last Synced: 2025-03-18T05:31:21.848Z (3 months ago)
- Topics: macos, nix, nix-darwin
- Language: Nix
- Homepage:
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 NixMake 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)