https://github.com/devbruce/nix
My declarative development environment setup using Nix
https://github.com/devbruce/nix
home-manager nix nix-darwin nix-flake
Last synced: 7 months ago
JSON representation
My declarative development environment setup using Nix
- Host: GitHub
- URL: https://github.com/devbruce/nix
- Owner: devbruce
- License: mit
- Created: 2025-01-24T08:37:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-03T05:35:23.000Z (8 months ago)
- Last Synced: 2025-06-11T23:08:13.235Z (8 months ago)
- Topics: home-manager, nix, nix-darwin, nix-flake
- Language: Shell
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nix
- Nix:
- ✨ **Remote modules: [`devbruce/nix-modules`](https://github.com/devbruce/nix-modules)**
## 📦 Contents
- 📁 [`./nix-darwin`](./nix-darwin) for macOS
## ⌘ Commands
> [!TIP]
> Copy [`.config/nix/nix.conf`](.config/nix/nix.conf) to `${HOME}`
> (→ Omit `--extra-experimental-features "nix-command flakes"`)
✔️ Click to View
- Initialize nix-darwin flake file
```bash
nix flake init -t nix-darwin --extra-experimental-features "nix-command flakes"
```
- Install `darwin-rebuild` & apply Nix Flake configuration
```bash
nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ${NixFlakeFileDirPath}#${FlakeOutputName}
```
- Apply the Nix Flake configuration
```bash
sudo darwin-rebuild switch --flake ${NixFlakeFileDirPath}#${FlakeOutputName}
```
- Update `flake.lock`
```bash
nix flake update --flake ${NixFlakeFileDirPath}
```