Unified configuration for macOS and Linux systems from a single point of control
-
Darwin (macOS)
- 2021 M1 Max MacBook Pro (16")
- 2024 M4 Max MacBook Pro (16") (WIP)
-
Linux (NixOS)
- HP ZBook Firefly 14 G7 (WIP)
-
Darwin (macOS)
- Use the Determinate Systems Nix Installer to install Nix on macOS
- For the first run, use
nix -v run
-
Linux (nixOS)
For an existing system, use
sudo nixos-rebuild switch --flake .(fresh install instruction wip)
After changes are made:
nh (os|darwin) switch -a . # os for NixOS, darwin for macOS
- Enter the dev environment with
nix develop(ordirenv allowif you use direnv). - Run
uv synconce to create.venv;.envrcwill auto-activate it when present. - Repo CLI (update/CI helpers):
nix run .#nixcfg -- update --helpandnix run .#nixcfg -- ci --help.
| Feature ⬇️ / OS ➡️ | macOS | NixOS | Debian | Any Linux distribution |
|---|---|---|---|---|
| Automatic setup | ❌ | ❌ | ❌ | ❌ |
| Automatic backups | ❌ | ❌ | ❌ | ❌ |
| Storage encryption | ❌ | ❌ | ❌ | ❌ |
| Secret management | ❌ | ❌ | ❌ | ❌ |