<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/infecting-the-steam-link-with-nixos-emaie25ho" -->

---
title: Infecting the Steam Link with NixOS | daily.dev
description: A detailed walkthrough covers repurposing an old Steam Link device as a low-power always-on NixOS box, working around Valve's kernel-signature-locked...
canonical: https://daily.dev/posts/infecting-the-steam-link-with-nixos-emaie25ho
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Infecting the Steam Link with NixOS | daily.dev
og:description: A detailed walkthrough covers repurposing an old Steam Link device as a low-power always-on NixOS box, working around Valve's kernel-signature-locked...
og:url: https://daily.dev/posts/infecting-the-steam-link-with-nixos-emaie25ho
og:image: https://api.daily.dev/og/posts/eMaIe25Ho.png
og:image:alt: Infecting the Steam Link with NixOS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Infecting the Steam Link with NixOS

**[Lobsters](https://daily.dev/sources/lobsters)** · 15 min read · 0 upvotes · 0 comments

## Summary

A detailed walkthrough covers repurposing an old Steam Link device as a low-power always-on NixOS box, working around Valve's kernel-signature-locked bootloader by compiling a custom kexec kernel module from scratch (rather than reusing existing binaries floating around online). The writeup covers setting up cross-compilation with Nix flakes targeting armv7l, patching and building a 13-year-old vendored 3.8.13 kernel with modern GCC, debugging the kexec handoff blind (no working HDMI) using a Busybox initramfs and netcat reverse shell over the initrd network stack, and finally shrinking the resulting NixOS closure from 2.3GB down to 1.2GB by trimming firmware, docs, Nix itself, and other unnecessary components. Full flake.nix and kexec_mod source are provided.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://feyor.sh/blog/infecting-the-steam-link-with-nixos>

## Questions this post answers

### How do you boot a custom Linux kernel on a Steam Link when the bootloader only accepts Valve-signed kernels?

You boot into the Valve-signed stock kernel first, then use kexec to hand off execution to your own kernel. Since the shipped 3.8.13 kernel lacks CONFIG_KEXEC, the kexec syscall must be added at runtime by loading a small out-of-tree kernel module (kexec_mod) built against a kernel checkout compiled with make modules and CONFIG_KEXEC=y enabled.

_See the full flake and kernel module setup on daily.dev for anyone reviving old locked-down hardware with NixOS._

### Why does building nixpkgs with crossSystem.config set to armv7a-unknown-linux-gnueabihf fail for Go packages?

Using armv7a as the cross-compilation target config interacts poorly with the Go build plumbing in nixpkgs, causing build issues. The workaround is targeting armv7l instead, which is treated as equivalent for the Steam Link's actual armv7a toolchain but avoids the Go-related breakage in nixpkgs's system definitions.

_Developers hitting cross-compilation quirks with nixpkgs architectures can find configs like this on daily.dev._

### How much can a minimal NixOS closure be shrunk down for a constrained embedded ARM device?

A minimal NixOS install for the Steam Link was reduced from an initial 2.3GB disk image down to 1.2GB by trimming the massive linux-firmware package to a single needed firmware blob, disabling Nix itself and installer tools, removing documentation, fonts, and unused xdg modules, and disabling networkmanager and the firewall since kexec-based boot makes most system administration utilities irrelevant.

_daily.dev surfaces techniques like these for engineers trimming NixOS closures on real embedded hardware._

## Similar posts on daily.dev

- [Someone merged SteamOS with NixOS, and the result is the strangest Linux distro I've ever loved](https://daily.dev/posts/someone-merged-steamos-with-nixos-and-the-result-is-the-strangest-linux-distro-i-ve-ever-loved-0srcr9fis) · XDA Developers · 0 upvotes · 0 comments
- [Passphrase-less reboots using kexec under NixOS](https://daily.dev/posts/passphrase-less-reboots-using-kexec-under-nixos-o8dh2ryzu) · Lobsters · 0 upvotes · 0 comments
- [Igalia's Work Improving The Linux Kernel For Helping Steam Play Gaming On ARM64](https://daily.dev/posts/igalia-s-work-improving-the-linux-kernel-for-helping-steam-play-gaming-on-arm64-kuu897m66) · Phoronix · 0 upvotes · 0 comments
- [A Linux Power User Puts SteamOS To Work](https://daily.dev/posts/a-linux-power-user-puts-steamos-to-work-vme39cquy) · Hackaday · 33 upvotes · 0 comments
- [NixOS is making me less afraid](https://daily.dev/posts/nixos-is-making-me-less-afraid-yitvudqxq) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#embedded](https://daily.dev/tags/embedded), [#nixos](https://daily.dev/tags/nixos)

[View this post on daily.dev](https://daily.dev/posts/infecting-the-steam-link-with-nixos-emaie25ho)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Infecting the Steam Link with NixOS","url":"https://daily.dev/posts/infecting-the-steam-link-with-nixos-emaie25ho","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/infecting-the-steam-link-with-nixos-emaie25ho"},"datePublished":"2026-09-26T19:40:47.196Z","dateModified":"2026-09-26T19:41:14.453Z","description":"A detailed walkthrough covers repurposing an old Steam Link device as a low-power always-on NixOS box, working around Valve's kernel-signature-locked...","image":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","thumbnailUrl":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/infecting-the-steam-link-with-nixos-emaie25ho","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"embedded,nixos","timeRequired":"PT15M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Infecting the Steam Link with NixOS"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/infecting-the-steam-link-with-nixos-emaie25ho#faq","mainEntity":[{"@type":"Question","name":"How do you boot a custom Linux kernel on a Steam Link when the bootloader only accepts Valve-signed kernels?","acceptedAnswer":{"@type":"Answer","text":"You boot into the Valve-signed stock kernel first, then use kexec to hand off execution to your own kernel. Since the shipped 3.8.13 kernel lacks CONFIG_KEXEC, the kexec syscall must be added at runtime by loading a small out-of-tree kernel module (kexec_mod) built against a kernel checkout compiled with make modules and CONFIG_KEXEC=y enabled. See the full flake and kernel module setup on daily.dev for anyone reviving old locked-down hardware with NixOS."}},{"@type":"Question","name":"Why does building nixpkgs with crossSystem.config set to armv7a-unknown-linux-gnueabihf fail for Go packages?","acceptedAnswer":{"@type":"Answer","text":"Using armv7a as the cross-compilation target config interacts poorly with the Go build plumbing in nixpkgs, causing build issues. The workaround is targeting armv7l instead, which is treated as equivalent for the Steam Link's actual armv7a toolchain but avoids the Go-related breakage in nixpkgs's system definitions. Developers hitting cross-compilation quirks with nixpkgs architectures can find configs like this on daily.dev."}},{"@type":"Question","name":"How much can a minimal NixOS closure be shrunk down for a constrained embedded ARM device?","acceptedAnswer":{"@type":"Answer","text":"A minimal NixOS install for the Steam Link was reduced from an initial 2.3GB disk image down to 1.2GB by trimming the massive linux-firmware package to a single needed firmware blob, disabling Nix itself and installer tools, removing documentation, fonts, and unused xdg modules, and disabling networkmanager and the firewall since kexec-based boot makes most system administration utilities irrelevant. daily.dev surfaces techniques like these for engineers trimming NixOS closures on real embedded hardware."}}]}
```

