{"id":25082007,"url":"https://github.com/ramytanios/nix-config","last_synced_at":"2025-06-24T16:41:24.154Z","repository":{"id":209354601,"uuid":"723719787","full_name":"ramytanios/nix-config","owner":"ramytanios","description":"My personal Nix configuration files ⚙️❄️","archived":false,"fork":false,"pushed_at":"2025-04-10T15:33:45.000Z","size":226,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T08:16:01.757Z","etag":null,"topics":["macos","neovim","nix"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ramytanios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-11-26T15:06:39.000Z","updated_at":"2025-03-18T20:10:54.000Z","dependencies_parsed_at":"2023-12-16T14:45:09.632Z","dependency_job_id":"977061b5-f244-4513-a102-4cad7947c1cc","html_url":"https://github.com/ramytanios/nix-config","commit_stats":{"total_commits":149,"total_committers":1,"mean_commits":149.0,"dds":0.0,"last_synced_commit":"d5b498dc720289b8bc237b29df44b6b61d3bd821"},"previous_names":["ramytanios/nix-config"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramytanios%2Fnix-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramytanios%2Fnix-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramytanios%2Fnix-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramytanios%2Fnix-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramytanios","download_url":"https://codeload.github.com/ramytanios/nix-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249031790,"owners_count":21201357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["macos","neovim","nix"],"created_at":"2025-02-07T05:28:35.746Z","updated_at":"2025-04-15T08:16:07.115Z","avatar_url":"https://github.com/ramytanios.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My personal Nix configuration flake.\n\nNix configuration flake for my personal machines (macOS and NixOS).\n\n💡*Inspired by* [buntec](https://github.com/buntec/nix-config)'s setup\n\n## Fresh NixOS install\nAfter installing NixOS from a USB drive, follow these steps:\n\n1. Clone this repo and `cd` into it.\n\n2. Copy `/etc/nixos/hardware-configuration.nix` into `./system` (OK to overwrite existing dummy file).\n\n3. Finally, to build and activate in one step using the `apps` provided by the flake\n```bash\nnix run .#rebuild-nixos # system configuration\nnix run .#hm-switch-nixos # dotfiles and home configuration\n```\n\n## Fresh macOS install\n(Heavily inspired by this [gist](https://gist.github.com/jmatsushita/5c50ef14b4b96cb24ae5268dab613050))\n\nTo bootstrap a fresh macOS install, follow these steps:\n\n1. Install Homebrew (only needed for managing GUI apps via casks)\n```bash\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n```\n\n2. Install Nix:\n```bash\ncurl -L https://nixos.org/nix/install | sh\n```\n\n3. Enable flakes\n```bash\nmkdir -p ~/.config/nix\ncat \u003c\u003cEOF \u003e ~/.config/nix/nix.conf\nexperimental-features = nix-command flakes\nEOF\n```\n\n4. To work around this [issue](https://github.com/LnL7/nix-darwin/issues/149)\n```bash\nsudo mv /etc/nix/nix.conf /etc/nix/.nix-darwin.bkp.nix.conf\n```\n\n5. Clone this repo, `cd` into it, then build and activate with the following commands:\n```bash\nnix run .#rebuild-macbook-air-m2 # system configuration\nnix run .#hm-switch-macbook-air-m2 # dotfiles and home configuration\n```\n\n## Migrating an existing macOS install to Nix\n1. Uninstall Homebrew:\n```\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)\"\n```\n\n2. Delete everything under `~/.config` and any other \"dot files\" in your home directory.\n\n3. Delete all applications that are listed as Homebrew casks in `./system/configuration-darwin.nix`\n\n4. Follow the steps for a fresh macOS install.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framytanios%2Fnix-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framytanios%2Fnix-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framytanios%2Fnix-config/lists"}