{"id":14155190,"url":"https://github.com/andrewbrey/dotfiles","last_synced_at":"2025-04-19T19:05:59.194Z","repository":{"id":63509031,"uuid":"568315953","full_name":"andrewbrey/dotfiles","owner":"andrewbrey","description":"multi-platform dotfiles, configuration, and bootstrap powered by chezmoi and deno","archived":false,"fork":false,"pushed_at":"2025-04-13T02:41:43.000Z","size":18342,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T03:38:05.262Z","etag":null,"topics":["chezmoi","codespaces","deno","devcontainers","dotfiles","gitpod","linux","macos"],"latest_commit_sha":null,"homepage":"https://github.com/andrewbrey/dotfiles","language":"TypeScript","has_issues":false,"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/andrewbrey.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":"2022-11-20T05:58:36.000Z","updated_at":"2025-04-13T02:41:47.000Z","dependencies_parsed_at":"2023-10-26T02:28:32.384Z","dependency_job_id":"f88705bf-1088-4f65-bb52-270b835b90c2","html_url":"https://github.com/andrewbrey/dotfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewbrey%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewbrey%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewbrey%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewbrey%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewbrey","download_url":"https://codeload.github.com/andrewbrey/dotfiles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249771908,"owners_count":21323195,"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":["chezmoi","codespaces","deno","devcontainers","dotfiles","gitpod","linux","macos"],"created_at":"2024-08-17T08:02:25.791Z","updated_at":"2025-04-19T19:05:59.188Z","avatar_url":"https://github.com/andrewbrey.png","language":"TypeScript","funding_links":[],"categories":["macos"],"sub_categories":[],"readme":"# dotfiles\n\n- Generate a new `ssh` key and give it a passphrase\n\n  ```sh\n  ssh-keygen -t ed25519 -C \"34140052+andrewbrey@users.noreply.github.com\"\n  ```\n\n- Add the `ssh` key to `GitHub`: https://github.com/settings/keys (Add it twice, once as an\n  \"Authentication key\" and once as a \"Signing key\")\n\n- Clone dotfiles to local\n\n  ```sh\n  git clone git@github.com:andrewbrey/dotfiles.git ~/dotfiles\n  ```\n\n- Run bootstrap\n\n  ```sh\n  ~/dotfiles/script/bootstrap\n  ```\n\n- _(Optional)_ Delete manually cloned dotfiles now that there is a `chezmoi` managed copy\n\n  \u003e Use `chezmoi` to locate managed dotfiles, in particular with `$(chezmoi source-path)`\n\n  ```sh\n  rm -rf ~/dotfiles\n  ```\n\n- Log out and back in to ensure changes to the login shell are enabled\n\n- Use the `pam` cli to install applications, e.g. a few apps at once\n\n  ```sh\n  pam install -a core-tools -a kitty -a fonts\n  ```\n\n  or a whole named group at once\n\n  ```sh\n  pam install -g devcontainer\n  ```\n\n- Use the `sam` cli to apply settings\n\n  ```sh\n  sam apply\n  ```\n\n## init script requirements\n\n`init/` scripts should be executable and have a shebang similar to:\n\n```sh\n#!/usr/bin/env -S deno run --allow-sys --allow-read --allow-net --allow-env --allow-run\n```\n\n## Assumptions\n\n- Running from an interactive terminal (TTY)\n- `chezmoi` init happens last\n- All linux stuff happens on a `debian` derivative that has `apt` as the package manager\n- Only linux and mac are supported\n\n## TODO\n\n- Document usage of `DOTFILES_PASSPHRASE` within codespaces\n- Document that direct usage of `chezmoi init` shouldn't happen - instead, invoke the bootstrap\n  script as there are environment vars used during `chezmoi` config creation that are set by the\n  bootstrap process\n- Document and/or automate how to add new shell completions (as well as why they are encrypted in\n  the first place)\n- Document that the `.gitconfig` can only _easily_ be edited where it's not ignored because\n  `chezmoi edit file` respects `.chezmoiignore` items (and won't decrypt the file to allow editing).\n  Could do something like `decrypt in source -\u003e pipe to tmp -\u003e make edits -\u003e encrypt back to source`\n  but that is probably not worth it when you can just make edits in an environmtn where it's not\n  ignored (i.e. not in a devcontainer)\n- Fix `yarn-error.log` caused by env vars\n- Document option to use:\n  ```sh\n  sh -c \"$(curl -sSLf https://dotfiles.andrewbrey.com)\"\n  ```\n  and how to do deploys to deno deploy using `.web` scripting\n\n- Document interaction with GH Keys (`https://github.com/andrewbrey.keys`) as a public key authority\n  and how they are provided to rpi's\n  - In general, just need to document the \"on boot\" shell start background tasks\n- Make `init` scripts idempotent so that if needed, the `bootstrap` script can be re-run on an\n  already-configured system\n- Address `TODO: refactor to os helpers` comments by using `$.onMac` and `$.onLinux` helpers\n- Convert all apps to pull `InstallerMeta` at the top of the file instead at the end\n- Refactor so install logic can be shared by update logic if they are the same process\n- Update \"single file binary\" installers (skate, bat, etc) to use `eget` (as in `charm` installer)\n- Fix whatever causes `tar` to exit with a code of 2 when extracting (e.g. `pam install flyctl`)\n  - Spent time reproducing the error using `golang` installer, and confirmed the issue has to do\n    with my code, not `tar`, not `dax`, not `gz`, not the archive from `golang` download\n    site...weird, but I guess...good?\n- Add [amphetamine](https://apps.apple.com/us/app/amphetamine/id937984704?mt=12) MacOS app to\n  replace `keepingyouawake` since it is able to prevent system sleep on mac better while still\n  allowing screen to sleep\n- Add [oatmeal](https://github.com/dustinblackman/oatmeal) llm terminal client\n- Add [freeze](https://github.com/charmbracelet/freeze) code screenshot tool\n- Add [flameshot](https://flameshot.org/) regular screenshot tool\n- Add [Nu shell](https://www.nushell.sh/) for structured shell\n- Add [PDF Arranger](https://flathub.org/apps/com.github.jeromerobert.pdfarranger) pdf tool\n- Add [Yazi File Manager](https://github.com/sxyazi/yazi)\n- Add [Cargo Binstall](https://crates.io/crates/cargo-binstall/) for faster cargo bin installs\n- Add [Numbat](https://github.com/sharkdp/numbat) tool for computation with awareness of physical\n  dimensions\n- Add [Pastel](https://github.com/sharkdp/pastel) tool for manipulating color in the terminal\n- Add [IconLibrary](https://flathub.org/apps/org.gnome.design.IconLibrary) for an icon viewer of\n  system icons\n- Add [Ulauncher](https://ulauncher.io/) to have an extensible launcher\n- Add [glow](https://github.com/charmbracelet/glow) to have a terminal markdown renderer\n- Add [lazysql](https://github.com/jorgerojas26/lazysql) to have a terminal sqlite admin application\n- Add [oculante](https://github.com/woelper/oculante) to have a nice image viewer\n- Add [html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown) to have an html to\n  markdown converter\n- Add [sniffnet](https://sniffnet.net/) to have a network traffic monitor written with iced\n- Add a `script/teardown` script next to `script/bootstrap` which can be used to remove sensitive\n  config files and secrets in one command. Might be able to just use `chezmoi purge`\n  (https://www.chezmoi.io/user-guide/advanced/migrate-away-from-chezmoi/). Should remove at least:\n  - `~/.local/share/chezmoi` (_contains chezmoi source state_)\n  - `~/.config/chezmoi` (_contains chezmoi config files_)\n  - `~/.dots/.extra` (_prompt to read file before delete, may contain saveable info_)\n  - `~/.dots`\n  - `~/dotfiles` (_might not be present, depending on install steps followed_)\n  - `~/.ssh` (_confirmation prompt, also notify that ssh keys should be untrusted in GitHub_)\n  - `~/.zshrc`\n  - `~/.gitconfig`\n- Remove (and probably replace) deprecated `neofetch` application\n- In `fonts` no longer need to tap the `homebrew/cask-fonts` cask (and doing so causes brew process\n  to exit non-zero)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewbrey%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewbrey%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewbrey%2Fdotfiles/lists"}