Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xsc/nix-config
https://github.com/xsc/nix-config
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/xsc/nix-config
- Owner: xsc
- Created: 2023-11-28T12:33:19.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-05-13T10:04:28.000Z (6 months ago)
- Last Synced: 2024-05-22T06:25:54.870Z (6 months ago)
- Language: Nix
- Size: 256 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nix-config
[Source](https://github.com/dustinlyons/nixos-config)
## Installation
### 1. Install dependencies
```sh
xcode-select --install
```### 2. Install Nix
Thank you for the installer, [Determinate Systems](https://determinate.systems/)!
```sh
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
```### 3. Checkout this Repository
Using whatever method you want, e.g. via a Nix shell that exposes `git`:
```sh
nix shell nixpkgs#git
git clone [email protected]:xsc/nix-config.git
```### 4. Apply your current user info
Adapt the file `user.nix` with your current data.
### 5. Install configuration
First-time installations require you to move the current `/etc/nix/nix.conf` out of the way.
```sh
[ -f /etc/nix/nix.conf ] && sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin
```If you're using a git repository, only files in the working tree will be copied
to the [Nix Store](https://zero-to-nix.com/concepts/nix-store). So it's
imperative you run `git add .`.Then, run `bin/build`, which wraps a few Nix commands to build and deploy a new
Nix generation.```sh
chmod +x bin/darwin-build && chmod +x bin/build && bin/build
```