22 lines
791 B
Markdown
22 lines
791 B
Markdown
<img alt="Hel (1889) by Johannes Gehrts." src="https://upload.wikimedia.org/wikipedia/commons/c/c5/Hel_%281889%29_by_Johannes_Gehrts.jpg" width="256" />
|
||
|
||
# [Garmr](https://en.wikipedia.org/wiki/Garmr)
|
||
|
||
> In Norse mythology, Garmr or Garm (Old Norse: Garmr [ˈɡɑrmz̠]; "rag") is a wolf or dog associated with both Hel and Ragnarök, and described as a blood-stained guardian of Hel's gate.
|
||
|
||
Garmr is the backend of fwlnx, guarding the system from invalid configurations. It takes the users configuration via a HTTP API and feeds it into the NixOS config to setup the whole system.
|
||
|
||
# API endpoints
|
||
|
||
## `GET /config`
|
||
|
||
Gives you the current configuration as json.
|
||
|
||
## `PUT /config`
|
||
|
||
Upload a json configration to this endpoint to reconfigure fwlnx.
|
||
|
||
|
||
---
|
||
|
||
Made with ❤️🔥 and 🐹.
|