Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aleksanderbl29/nix-config
https://github.com/aleksanderbl29/nix-config
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/aleksanderbl29/nix-config
- Owner: aleksanderbl29
- Created: 2024-07-18T12:42:09.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T15:53:06.000Z (4 months ago)
- Last Synced: 2024-09-15T08:25:49.215Z (4 months ago)
- Language: Nix
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```