Rename macOS nix-darwin host to daniel-macbook-air.nix

Match hostname Daniel-Macbook-Air; update flake and docs.

Made-with: Cursor
This commit is contained in:
DannyDannyDanny 2026-03-23 19:36:39 +01:00
parent ca0d38316f
commit 82ce5a7fe8
4 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@ cd ~/dotfiles/nixos && nix build .#installer-iso
- **Flake:** `nixos/flake.nix` — single flake for all hosts
- **Inputs:** nixpkgs-unstable, nix-darwin, home-manager, nixos-wsl, disko, zen-browser
- **Host configs** in `nixos/hosts/`:
- `macos.nix` — Apple Silicon MacBook Air (aarch64-darwin, nix-darwin)
- `daniel-macbook-air.nix` — hostname `Daniel-Macbook-Air` (aarch64-darwin, nix-darwin)
- `sunken-ship.nix` — NixOS home server (x86_64-linux)
- `wsl.nix` — WSL (x86_64-linux)
- `macbookair.nix` — old MacBook Air NixOS/WSL config
@ -52,7 +52,7 @@ cd ~/dotfiles/nixos && nix build .#installer-iso
## Ollama
Custom nix-darwin module at `nixos/ollama.nix` (upstream PR not yet merged). Enabled on macOS via `nixos/hosts/macos.nix`. Runs as a launchd user agent with `ollama serve`.
Custom nix-darwin module at `nixos/ollama.nix` (upstream PR not yet merged). Enabled on macOS via `nixos/hosts/daniel-macbook-air.nix`. Runs as a launchd user agent with `ollama serve`.
## Alacritty (macOS)

View file

@ -6,7 +6,7 @@ Alacritty follows **System Settings → Appearance** automatically. No `darwin-r
1. Home Manager installs Catppuccin palettes as `~/.config/alacritty/catppuccin-{latte,mocha}-colors.toml` and a generated `alacritty.toml` that sets `general.import` to `active-colors.toml`.
2. `scripts/alacritty-sync-system-theme.sh` copies the matching palette to `active-colors.toml`. Alacrittys `live_config_reload` picks it up immediately.
3. **nix-darwin** runs that script from a user LaunchAgent every 30s (`nixos/hosts/macos.nix`: `launchd.user.agents.alacritty-system-theme`). It is also installed on `PATH` as `alacritty-sync-system-theme`.
3. **nix-darwin** runs that script from a user LaunchAgent every 30s (`nixos/hosts/daniel-macbook-air.nix`: `launchd.user.agents.alacritty-system-theme`). It is also installed on `PATH` as `alacritty-sync-system-theme`.
4. **Fish** runs the same script in the background when you open an interactive shell on Darwin, so changes apply quickly without waiting for the next poll.
## Optional manual LaunchAgent
@ -36,7 +36,7 @@ theme status
- `scripts/alacritty-sync-system-theme.sh` — detect macOS appearance, copy palette, refresh nvim marker
- `scripts/sync-alacritty-theme.sh` — thin wrapper (backwards compatible)
- `nixos/home/danny/home.nix``programs.alacritty` + `xdg.configFile` for palettes
- `nixos/hosts/macos.nix` — LaunchAgent + `alacritty-sync-system-theme` in `environment.systemPackages`
- `nixos/hosts/daniel-macbook-air.nix` — LaunchAgent + `alacritty-sync-system-theme` in `environment.systemPackages`
- `nixos/fish.nix` — optional shell-open sync on Darwin
After changing Nix config, run `darwin-rebuild switch` once (see repo `AGENTS.md`).

View file

@ -106,7 +106,7 @@
darwinConfigurations."Daniel-Macbook-Air" = nix-darwin.lib.darwinSystem {
specialArgs = { inherit zen-browser; };
modules = [
./hosts/macos.nix
./hosts/daniel-macbook-air.nix
./fish.nix
# Home Manager on macOS