{"id":34730182,"url":"https://github.com/lucadibello/nix-config","last_synced_at":"2026-05-21T21:35:33.316Z","repository":{"id":327874031,"uuid":"1110261534","full_name":"lucadibello/nix-config","owner":"lucadibello","description":"Declarative macOS system configuration and dotfiles managed with Nix flakes, nix-darwin, and Home Manager for a reproducible environment","archived":false,"fork":false,"pushed_at":"2026-05-15T09:23:04.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-15T10:52:38.354Z","etag":null,"topics":["home-manager","macos","nix-darwin"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucadibello.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-05T00:01:45.000Z","updated_at":"2026-05-15T09:23:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lucadibello/nix-config","commit_stats":null,"previous_names":["lucadibello/nix-config"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucadibello/nix-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadibello%2Fnix-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadibello%2Fnix-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadibello%2Fnix-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadibello%2Fnix-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucadibello","download_url":"https://codeload.github.com/lucadibello/nix-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadibello%2Fnix-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33315880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"ssl_error","status_checked_at":"2026-05-21T12:22:11.673Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["home-manager","macos","nix-darwin"],"created_at":"2025-12-25T02:56:27.285Z","updated_at":"2026-05-21T21:35:33.305Z","avatar_url":"https://github.com/lucadibello.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Luca’s nix-darwin config\n\nModern rewrite of my old dotfiles ([lucadibello/dotfiles](https://github.com/lucadibello/dotfiles)), now fully managed with [Nix](https://nixos.org/) flakes + [nix-darwin](https://github.com/nix-darwin/nix-darwin) + [home-manager](https://github.com/nix-community/home-manager). It provisions my personal macOS setup (shell, CLI tools, GUI apps, window manager, terminal/tmux, Git identity) in a reproducible way.\n\n## What’s inside\n\n- `flake.nix`: entrypoints for hosts `Lucas-MacBook-Pro-16-inch` (MacBook) and `Lucas-Mac-Mini` (Desktop).\n- `darwin/`: nix-darwin modules (system defaults, TouchID/WatchID for sudo, keyboard/caps remap, Finder tweaks, PATH/EDITOR env, Homebrew taps/casks, AeroSpace service).\n- `home/`: home-manager modules for shell (zsh + fzf/zoxide/atuin), prompt (starship), tmux (Catppuccin theme, cpu/battery/fzf/yank/pain-control plugins), Git user config, dev toolchain (fnm, sdkman, jdk21), and CLI packages (neovim, zed, lazygit, claude-code, etc.).\n- `hosts/\u003chostname\u003e/configuration.nix`: host-specific settings (e.g., TouchID vs WatchID, gaming packages for Mac Mini).\n- `config/`: extra assets (e.g., Ghostty cursor shader).\n- `bootstrap.sh`: helper script to bootstrap the system (installs nix-darwin, builds flake).\n\n## Quick start (on a new Mac)\n\n1. Install Nix with flakes enabled (e.g., Determinate/official installer). Ensure you have `nix` available.\n2. Clone this repo to `~/Developer/nix-config` (or adjust paths accordingly).\n3. (Optional) Add a host entry under `hosts/\u003cyour-host\u003e/configuration.nix` and point `flake.nix` to it if your machine name differs from `Lucas-MacBook-Pro-16-inch`.\n4. Apply the system:\n\n   ```bash\n   chmod +x bootstrap.sh\n   ./bootstrap.sh\n   ```\n\n5. Log out/in (or reboot) to let macOS defaults and services settle.\n\n## Managing and customizing\n\n- Packages: edit `home/packages.nix` for CLI tools; GUI/casks live in `darwin/homebrew.nix`.\n- Shell \u0026 prompt: tweak `home/zsh.nix` (zsh + oh-my-zsh with `git`, `vi-mode`, `tmux` plugins) and `home/starship.nix`; aliases include `nix-switch` for updating the system.\n- Window management: `darwin/services.nix` configures AeroSpace with `alt`-centric bindings (tiles/accordion layouts, workspaces A–Z/0–9, Ghostty launcher on `alt-enter`) and smart window movement rules.\n- Terminal: `home/ghostty.nix` sets font (JetBrains Mono), theme (Github Dark), custom cursor shader, zsh integration, and auto-starts a `core` tmux session.\n- System defaults: adjust Finder/keyboard/loginwindow options (e.g., Caps Lock to Escape, hidden files, no guest login) in `darwin/system.nix` and env in `darwin/settings.nix`.\n- Homebrew: `darwin/homebrew.nix` manages casks (browsers, AI tools, dev apps) and brews, with `zap` cleanup enabled.\n\n## Update cycle\n\n- Pull latest changes, edit modules as needed, then run:\n\n  ```bash\n  nix-switch\n  ```\n\n  \u003e **Note**: This is an alias for `sudo darwin-rebuild switch --flake ~/Developer/nix-config#\u003cHOST_NAME\u003e`, automatically configured in `zsh`.\n\n- `nix flake update` bumps inputs (`nixpkgs`, `nix-darwin`, `home-manager`) to the pinned release (`25.11` today).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucadibello%2Fnix-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucadibello%2Fnix-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucadibello%2Fnix-config/lists"}