---
title: "Declarative infrastructure"
description: "Machines configured as code: NixOS with COSMIC on Wayland and a Razer Core X eGPU, dotfiles synced across Linux and macOS with GNU Stow and Git, and the config changes that fixed what broke."
canonical_url: "https://subodhdahal.com/topics/declarative-infrastructure/"
---

> Index of every page on this site: [llms.txt](https://subodhdahal.com/llms.txt)

I'd rather describe a machine in code than remember the commands I ran on it. A Nix config in Git defines my laptop, which runs NixOS with the COSMIC desktop on Wayland and a Razer Core X eGPU. These posts trace problems on that setup layer by layer, down to the config change that fixed each one. On machines without Nix, I keep dotfiles in a Git repo and link them into place with GNU Stow. Most snippets are Nix, but the debugging steps apply to most Linux systems.

## Sitemap

See the full [sitemap](https://subodhdahal.com/sitemap.md) for all pages.
