Skip to content

Commit

Permalink
nixos/doc: move implementation notes for formats.hocon to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
h7x4 committed Jun 16, 2024
1 parent 89aaab5 commit 141a8a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 8 additions & 0 deletions nixos/doc/manual/development/settings-options.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ have a predefined type and string generator already declared under
}
```

`Implementation notes:`

- classpath includes are not implemented in pyhocon,
which is used for validating the HOCON output. This
means that if you are using classpath includes,
you will want to either use an alternative validator
or set `doCheck = false` in the format options.

`pkgs.formats.json` { }

: A function taking an empty attribute set (for future extensibility)
Expand Down
4 changes: 0 additions & 4 deletions pkgs/pkgs-lib/formats/hocon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@ let
'';
in
{
# https://github.com/lightbend/config/blob/main/HOCON.md
format = {
generator ? hocon-generator
, validator ? hocon-validator
# `include classpath("")` is not implemented in pyhocon.
# In the case that you need this functionality,
# you will have to disable pyhocon validation.
, doCheck ? true
}: let
hoconLib = {
Expand Down

0 comments on commit 141a8a6

Please sign in to comment.