From 82ce5a7fe8d307aeaac278788c35a07ae1622f46 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Mon, 23 Mar 2026 19:36:39 +0100 Subject: [PATCH] Rename macOS nix-darwin host to daniel-macbook-air.nix Match hostname Daniel-Macbook-Air; update flake and docs. Made-with: Cursor --- CLAUDE.md | 4 ++-- assets/alacritty/README.md | 4 ++-- nixos/flake.nix | 2 +- nixos/hosts/{macos.nix => daniel-macbook-air.nix} | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename nixos/hosts/{macos.nix => daniel-macbook-air.nix} (100%) diff --git a/CLAUDE.md b/CLAUDE.md index a433568..7640fa6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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) diff --git a/assets/alacritty/README.md b/assets/alacritty/README.md index 0ac58d4..d063fb7 100644 --- a/assets/alacritty/README.md +++ b/assets/alacritty/README.md @@ -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`. Alacritty’s `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`). diff --git a/nixos/flake.nix b/nixos/flake.nix index 6563f56..aa7e0d6 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -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 diff --git a/nixos/hosts/macos.nix b/nixos/hosts/daniel-macbook-air.nix similarity index 100% rename from nixos/hosts/macos.nix rename to nixos/hosts/daniel-macbook-air.nix