dotfiles/native_configs/README.md

18 lines
729 B
Markdown
Raw Normal View History

2022-12-25 09:55:30 +00:00
# Native configs
Contains all configurations that are written in their native configuration language.
## Why native language?
- Easier portability
2023-06-18 00:46:31 +00:00
- Syntax highlighting and robust checking without needing to realize derivation
- Nix can read from [JSON](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-fromJSON),
[TOML](https://nixos.org/manual/nix/stable/release-notes/rl-2.6.html#release-26-2022-01-24).
- We have also managed to hack together a [fromYaml](./../nix-conf/lib/serde/default.nix),
though it will not work for strictly pure builds or bootstrapping builds.
2023-06-18 00:46:31 +00:00
## When to use Nix to generate config?
- Original configuraiton language requires too much duplication that can be solved with Nix