How I Ended Up Adding Deep Sleep to the M4 MacBook Air

In April I bought a MacBook Neo as a fun project. In November a patch series of mine taught the M4 MacBook Air to sleep properly under Linux.

This is how one led to the other.

Read more...

From Nix Shells to a Private Home Cloud

I started using Nix because Haskell development environments were difficult to reproduce.

Seven years later, one flake describes my desktops, laptops, server, Steam Deck, Raspberry Pis, virtual machines, user environment and Darwin machine. An OpenWrt router and Tailscale extend the same private DNS namespace to me wherever I am.

The result is not a public cloud. It is my home network following me around.

Read more...

Turning an Acer Chromebook Into a Linux Laptop

My Acer Chromebook 311 contained an ordinary Intel processor, memory, storage, display, keyboard and Wi-Fi adapter.

It did not contain an ordinary PC boot path.

Community UEFI firmware made it boot Tails and NixOS in 2022, though 32 GB of internal storage made local NixOS builds miserable. Four years later, remote builds, a couple of audio fixes and a USB-C Power Delivery workaround turned it into a permanent NixOS Jellyfin client next to my TV.

Read more...

Recreating MacBook Charge Control on NixOS

After replacing the battery in my 2015 MacBook Pro, I wanted NixOS to stop holding it at 100 percent charge all day.

macOS has proprietary battery-health and optimized-charging behavior. I did not try to reproduce Apple’s prediction model.

I built a deterministic alternative: 80 percent normally, 100 percent after unplugging for travel, then back to 80.

Read more...