{"id":20138378,"url":"https://github.com/biosan/dotfiles","last_synced_at":"2025-04-09T18:08:47.819Z","repository":{"id":55455842,"uuid":"150306991","full_name":"biosan/dotfiles","owner":"biosan","description":"Nix + home-manager dotfiles - one config to rule them all 💍👨‍💻🔥","archived":false,"fork":false,"pushed_at":"2021-12-25T19:17:29.000Z","size":516,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T20:05:31.233Z","etag":null,"topics":["dotfiles","fish","git","gpg","home-manager","homebrew","karabiner","macos","neovim","nix","nixpkgs"],"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/biosan.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}},"created_at":"2018-09-25T17:54:43.000Z","updated_at":"2024-08-27T13:53:19.000Z","dependencies_parsed_at":"2022-08-15T00:40:30.758Z","dependency_job_id":null,"html_url":"https://github.com/biosan/dotfiles","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biosan%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biosan%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biosan%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biosan%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biosan","download_url":"https://codeload.github.com/biosan/dotfiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248084782,"owners_count":21045135,"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":["dotfiles","fish","git","gpg","home-manager","homebrew","karabiner","macos","neovim","nix","nixpkgs"],"created_at":"2024-11-13T21:37:43.933Z","updated_at":"2025-04-09T18:08:47.801Z","avatar_url":"https://github.com/biosan.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# One config to rule them all 💍👨‍💻🔥\n\nThis repo contains my dotfiles, all the config files, scripts, and instructions to setup a new machine.\n\nMost of the settings and programs are managed with [home-manager](https://github.com/nix-community/home-manager).\n\n[Nix](https://nixos.org/) and [home-manager](https://github.com/nix-community/home-manager) makes everything stable and easy to reproduce.\n\n\u003e **macOS**\n\u003e\n\u003e My daily machine is a Mac, and this requires some special attention to some settings that could not be managed with Nix and home-manager directly.\n\n\n## Installation on macOS\n\n1. Install XCode CLI tools\n    ```\n    xcode-select --install\n    ```\n\n1. Install Nix (a reboot could be necessary)\n    ```\n    sh \u003c(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume\n    ```\n1. Add home-manager and unstable channels\n    ```\n    nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager\n    nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable\n    nix-channel --update\n    export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH\n    ```\n1. Install home-manager\n    ```\n    nix-shell '\u003chome-manager\u003e' -A install\n    ```\n1. Clone this repo inside `~/.config/nixpkgs` (must remove default nixpkgs before cloning)\n    ```\n    rm -r ~/.config/nixpkgs\n    git clone https://github.com/biosan/dotfiles ~/.config/nixpkgs\n    ```\n1. Setup home-manager configuration (install and configure programs)\n    *NOTE: Takes a loooong time*\n    ```\n    home-manager switch\n    ```\n\n1. Install Homebrew\n    ```\n    bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)\"\n    ```\n1. Install apps from Homebrew\n    \u003e NOTEs:\n    \u003e   - Takes a **loooong** time\n    \u003e   - **Will ask for password a lot of times...**\n    ```\n    brew bundle --verbose --file ~/.config/nixpkgs/config/macos/Brewfile\n    ```\n1. Setup some macOS-specific configuration\n    ```\n    sh ~/.config/nixpkgs/config/macos/settings.sh\n    ```\n\n\n### Post installation steps\n\n1. Import GPG public keys\n    ```\n    curl https://keybase.io/biosan/key.asc | gpg --import\n    ```\n1. Insert YubiKey and import GPG secret key stubs\n    ```\n    gpg --card-status\n    ```\n1. Change dotfiles remote from HTTPS to SSH\n    ```\n    cd ~/.config/nixpkgs\n    git remote set-url origin git@github.com:biosan/dotfiles.git\n    ```\n1. Clone `pass` repository using SSH\n    ```\n    git clone \u003cREPO_URL\u003e ${PASSWORD_STORE_DIR}\n    ```\n\n\n#### Other macOS stuff\n\n1. Install profile files for mail, DNS, VPN, etc.\n1. Login into\n    - BitWarden\n    - Firefox Sync\n    - Dropbox\n    - Todoist\n    - OmniFocus\n    - Reeder (NewsBlur account)\n    - VSCode\n    - IntelliJ and WebStorm\n1. Enable Night Shift\n1. Insert Alfred license\n1. Organize menu bar items with Dozer\n1. [Download](https://store.serif.com/en-gb/account/downloads/) (login needed), install and register Affinity Photo\n1. Stuff to start at login:\n    - Dropbox\n    - Alfred\n    - Dozer\n1. Setup Firefox:\n    - Login into Pocket\n    - Set history cleaner to 7 days\n    - Add container tabs for Google, Work, and AdA\n    - Enable compact style\n    - Move every add-on icon to Overflow Menu except except for BitWarden\n        *NOTE: Firefox \"native\" icons stays at default position (this stuff is synced)*\n1. Enable Time Machine automatic backups (encrypted disk!) and enable *\"Show Time Machine in menu bar\"* option\n1. Add *\"U.S. International - PC\"* to keyboard layouts and enable *\"Show Input menu in menu bar\"* option\n1. Setup [Amethyst](https://github.com/ianyh/Amethyst)\n   - Enable *Window Margins* and set it to 5px\n   - Set *Screen Padding* to 5px (top, left, bottom, right)\n   - Enable *Swap windows using mouse* and *Resize windows using mouse* (mouse tab)\n1. Right-click on desktop and enable \"Stacks\"\n\n\n\n## ToDo\n\n### General\n\n- [ ] `pass` repo initial setup\n- [ ] Homebrew token in private `.envrc` file\n- [ ] Auto install profiles for mail, dns, vpn, etc. with `profiles -I -F \"\u003cPATH\u003e\"`\n- [ ] Enable *Night Shift*\n- [ ] Import and trust GPG keys\n- [ ] Enable snap-to-grid for icons on the desktop and in other icon views\n- [ ] Configure Dozer\n- [ ] Configure Amethyst\n\n### Things to setup declaratevely with Nix/Home-Manager\n\n- [ ] macOS configuration/settings/profiles (using [nix-darwin](https://github.com/LnL7/nix-darwin))\n- [ ] Switch to [flakes](https://nixos.wiki/wiki/Flakes) to improve reproducibility and UX\n- [ ] Complete system-in-a-container (even a VM will be fine) with full NixOS (ISO, cloud image, docker container)\n- [ ] Import and trust GPG keys\n- [ ] Clone `pass` repo\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiosan%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiosan%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiosan%2Fdotfiles/lists"}