{
  "id": 23845295,
  "title": "Turning BIRD configuration language into NixOS modules through lexer and parser specifications",
  "url": "https://urgent.news/2026/12/06/turning-bird-configuration-language-into-nixos-modules-through-lexer",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-06T14:27:51.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://discourse.nixos.org/t/100-of-bird-configuration-in-nix/81302"
  },
  "original_language": null,
  "account": "In 2025, a presentation was given on utilizing NixOS machines as border routers with Internet scale routing capabilities. Similar attempts were made at NixCon 26, which were well-received. The presenter heavily relied on BIRD, a configuration language used for routing daemons, web servers, and more. However, manually inputting options proved to be cumbersome and resulted in very large files. Over the weekend, the presenter contemplated whether it would be possible to leverage BIRD's parser/lexer generation to programmatically annotate config production rules. This would enable the conversion of complex type names into user-friendly NixOS module type declarations with 100% accuracy. The presenter examined options such as NixOS Router, a simple and fast static-page search engine for NixOS options and packages. The concept was initially coded for fun but had the potential to be production-ready for those who prefer a more streamlined approach.",
  "summary": null,
  "summary_source": "publisher",
  "key_points": [
    "Presenter proposes converting BIRD config language into NixOS modules",
    "BIRD parser/lexer generation enables automated config production rules",
    "Concept coded for fun, with potential for production-ready implementation"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}