NixOS Home Server
A spare machine turned declarative home platform — media for every screen, a self-hosted cloud for every device, mirrored encrypted storage, and network-wide ad filtering.
Linux · NixOS · Obsidian · Syncthing · AdGuard Home · RAID Mirror · Disk Encryption · DNS
What Madman Runs AWS at Home?
The hardware was already lying around: a machine with 32 GB of RAM and virtualization enabled, waiting for a purpose. The plan was to run AWS's host-your-own-cloud stack on it — a private region in the living room. It didn't work at all, and honestly that's fine: what madman would do such a thing?
So the box got a better job. Over time it became the home server — one self-hosted service after another, until it quietly ran the whole house.
The Whole House From One Config
The server runs NixOS: every service, user, mount and firewall rule is declared in one configuration, and the running system is built from it. There's nothing to remember and nothing to re-do — a rebuild after a disaster is applying the config, not a weekend of following old notes. Every rebuild also becomes a new entry in the boot menu, which pays off later.
A Private Cloud Without a Subscription
A Syncthing fork keeps phone, tablet, laptop and desktop in sync through the server — no third-party cloud ever holds the files. The Obsidian vault rides the same sync, so notes and game-design docs are local on every device and still everywhere at once. Own hardware, own data, no monthly fee.
One Connection, By Design
This overview is from the desktop PC, not the server — which is why it shows exactly one connection. The sync topology is a star: every device talks only to the home server, never to another device. The server is the always-on hub with the full copy; phones and laptops come and go, sync against it, and stay consistent without ever having to meet.
Media for Every Screen
The server doubles as the home media system: one library, streamed to every device on the network — TV, phones, tablets, PCs. No per-device copies, no accounts, no "this title has left the catalog".
Disks Fail — Data Shouldn't
Storage is an array of mirrored HDDs — every byte lives on two disks, so a drive can die without it becoming an event. The OS disk and the data array are encrypted separately with their own keys: a stolen or discarded drive is just noise, and unlocking one never unlocks the other.
Ads Die at the Router
AdGuard runs on the server and answers DNS for the whole network. Every device gets filtering without installing anything — including guests and the TV, where nothing could be installed anyway. Ad and tracker domains are dropped before they ever leave the house.
The Boot That Wanted a Password It Couldn't Ask For
One update produced a very special failure: at boot the system insisted the external disks be decrypted — but the decrypt script only exists after login. Disconnecting the disks didn't help either; the mounts were declared required, so it refused to boot without them. A perfect deadlock.
On most systems that's a rescue-USB evening. NixOS keeps every prior configuration as a bootable generation, so the fix was picking one about five steps back in the boot menu, repairing the decrypt moment there, and rebuilding. A catch-22, solved with a menu selection.