Strange start to my Monday where I spent ~2h debugging my hanging NixOS. Strangely I'm not sure I made any changes to my configuration to trigger this, and I was finding this hard to reproduce: - graphical X sessions hung (once when opening Chrome) - TTYs hung (during `nix-build` and `rebuild-system`) Per kn's recommendations whenever a system is hanging, see if it's reachable over the network (e.g. SSH). Since I didn't have my laptop, I downloaded Termius on my iPhone, which I used to mosh into ava, which is a surprisingly nice UX. I suspect my machine (with only 8GB of RAM) was OOMing, but I'm not certain. Thanks to grfn I installed `earlyoom`. For more commentary, check-out Profpatsch's blog post about this: https://profpatsch.de/notes/preventing-oom What went well: - Thankfully I installed a Matrix client on my iPhone last week, which allowed me to troubleshoot with the #tvl folks AIs: - I'd like some instrumentation like Prometheus, Loki (`journald`, `dmesg`), so that I can accumulate troubleshooting information that isn't destroyed when I reboot my machine (which I did 1/2-dozen times today). - Consider adding `git` metadata to `system.nixos.label` to get more useful information in a GRUB/EFI context. More unknowns: - Why can't I switch back to EFI (from GRUB) for my bootloader? Change-Id: Ie2a5a15f5c0ead346d50e331fa2937f8f3453960 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5625 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> |
||
|---|---|---|
| .. | ||
| .gitsecret | ||
| assessments | ||
| bin | ||
| boilerplate | ||
| buildHaskell | ||
| ci | ||
| configs | ||
| dotfiles | ||
| emacs | ||
| go | ||
| gopkgs | ||
| haskell-file | ||
| lisp | ||
| nixos | ||
| playbooks | ||
| scratch | ||
| terraform | ||
| todo-lists | ||
| tools | ||
| utils | ||
| website | ||
| zoo | ||
| .envrc | ||
| .gitignore | ||
| common.nix | ||
| keys.nix | ||
| Makefile | ||
| OWNERS | ||
| README.md | ||
| secrets.json.secret | ||
wpcarro
Welcome to my monorepo.
Herein you will find a variety of libraries, packages, and documents. Some of this work in finished and other work is incomplete or just a sketch for a future project.
Where applicable, I try to include README.md files in some of the
subdirectories to help orient both myself and any onlookers.
Sign posts
Below I have outlined a few projects that you might find interesting.
boilerplate: scaffolding for projects. Boilerplate's goal is to reduce the startup costs of a project.configs: my dotfiles (e.g.config.fish,init.vim).emacs: Emacs is both my preferred text editor and my window manager; with tens of thousands of lines of Emacs Lisp, you can safely assume that this directory hosts a lot of libraries and packages.monzo_ynab:systemdtimer unit that imports my Monzo (i.e. a U.K.-based online bank) transactions into the personal finance tool YNAB (i.e. youneedabudget.com).nixos: my declarative configuration for my NixOS machines. If you are unfamiliar with Nix, I recommend reading about the NixOS project.tools: some scripts and projects that simplify my life.website: everything required to build my website, https://wpcarro.dev.
Installation
Google Machine
- ensure
/google-briefcaseexists - read
/google-briefcase/README.md
NixOS Machine
- Ensure Nix is installed.
- Ensure direnv is installed.
- Ensure
~/.password-storeexists. - Transfer GPG stuffs:
- old computer:
configs/.gnupg/export.sh $outdir - new computer:
configs/.gnupg/import.sh <path-to-zip>from the new machine.
- old computer:
- Consult
Makefile.