This is an automated archive made by the Lemmit Bot.

The original was posted on /r/nixos by /u/peenuty on 2025-10-26 14:31:53+00:00.


Started building my Nix config a couple of months ago, I struggled to find good examples for some of the things I wanted in my config (especially impermanence + btrfs + secure boot together). Ended up building my own setup heavily inspired by eh8/chenglab’s config:

https://github.com/richardgill/nix

Features others might find useful:

  • Impermanence with btrfs - root filesystem wipes on every boot
  • just find-impermanent utility - detects files that need persistence
  • Secure Boot + TPM2 auto-unlock LUKS
    • Alternatively: Remote SSH unlock LUKS during boot
  • Installation entirely from ISO (low-memory friendly) - video walkthrough
  • Disko for declarative disk partitioning
  • sops-nix for secrets management
  • Plain .conf/.json dotfiles with mustache templating
  • Opinionated folder structure: headless/, graphical/, optional/

I’m definitely not a Nix expert! Any feedback on any mistakes/improvements is very welcome.