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

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

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}
```