Update for the week ending on Friday, Dec 27, 2024
Refactoring English
- Continued working on tutorials chapter
- Worked with designer on cover
- Upgraded website to Hugo 139
- Added TalkYard comments to sample chapters
mtlynch.io
- Started publishing full content in RSS feed
- Based on this tip
- Upgraded to Hugo 139.3
- But first did 0.119.0 to 0.129.0
- And then 0.129.0 to 134.0
- Easier to do smaller upgrades to find out what’s deprecated
- Refactored my TalkYard Hugo partial
- Updated to the latest TalkYard embed
NixOS migration
I recently built a new computer and installed NixOS on it after 20+ years of Windows. I’m learning how to do everything on NixOS now.
- Replaced a defective Crucial T705 disk with a temporary SSD while I wait for a replacement on the T705
- Migrating disks was way easier with NixOS, but it was still a bit bumpy
- I tried to just partition the new disk similarly to my T705 and then point my Nix config at the new disk, but my BIOS refused to recognize the new disk as a boot option
- Instead, I installed NixOS fresh on the new disk, then
rsync
‘ed most of the filesystem, then didnixos rebuild
, but that got sort of messy as copying the whole filesystem seemed to mess things up - I think the right approach for next time is:
- On the original system, back up
$HOME
and/var
to a network drive or spare disk - Install NixOS fresh on a new disk
- On the new NixOS install, copy
$HOME
and/var
from the backup - In the existing NixOS config, replace
hardware-configuration.nix
with the new system’s version - In the existing NixOS config, replace any other references to the previous disk ID
- Run
nixos rebuild
on the new system with the updated NixOS config
- On the original system, back up
- Switched all my NixOS configs to use nixpkgs-unstable
- I realized I need to do that to get the latest versions of all software
- Got fusion RSS reader working
- Turned off my Proxmox VM server
- I hadn’t used it since I set up the new NixOS machine
- Set up virt-manager for running VMs
- I need to figure out how to use this after 4 years of Proxmox, although I plan to run more of my services natively rather than within VMs
- Installed ghostty, which Mitchell Hashimoto finally released after two years of work
- I haven’t tested it much, but it seems like a step up from kitty in terms of aesthetics. Maybe slightly faster, too?
- Learned to use git-crypt at a basic level
- Added qimgv as an image view (don’t love it, but it’s the closest I could find to something decent)
- Removed Thunderbird
- I’m just using offlineimap now
- Fixed my swap drive that somehow got messed up
fusion
fusion is an open-source RSS reader I found when looking for an RSS aggregator to host on my NixOS system. I like that it’s written in Go and uses SQLite as a backend, so it’s pretty easy to self-host. The maintainer is very responsive to PRs as well.
- Simplified error handling in the dev scripts
- Weighed in on how to secure the admin password
- Debugged the candidate fusion nixpkg
- Refactored Dockerfile to use the canonical dev scripts
- Added static linking
- Renamed the example
.env
file so it doesn’t get picked up automatically - Deleted unused mock definitions
- Eliminated a magic string
- Added an error check
Misc
- Debugged my backup script to figure out why it’s hanging
- It turned out that I’d forgotten to exclude a lot of large directories that don’t require backups
- Changed my backup script to run in random order
- Ordered a new toothbrush
- I had a Sonicare that lasted 11 years
- Then I got an Oral-B Pro 1000 which lasted five years but the brush heads last for like 3 weeks
- Now, I’m trying SURI, which is supposed to be a sustainable toothbrush