From 5db3de89b6335b8fbe15dfa6f07520664c0c6cbd Mon Sep 17 00:00:00 2001 From: Marcel <34819524+MarcelCoding@users.noreply.github.com> Date: Fri, 24 Jan 2025 23:47:05 +0100 Subject: [PATCH] Add FAQ example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b8d4e28..0852117 100644 --- a/README.md +++ b/README.md @@ -74,13 +74,13 @@ It is often the easiest to move everything depending on the arguments into the ` ### default/example is a string/has extra surrounding quotes -This is caused by a missing `lib.literalExpression` in default/example. Please open a pull request against the source of that option to fix this. +This is caused by a missing `lib.literalExpression` in default/example. Please open a pull request against the source of that option to fix this. (e.g. [change in nixos-hardware](https://github.com/NixOS/nixos-hardware/pull/1343)) ## Debugging `options.json` Generating a `options.json` in a `nix repl` can be done with the following snippet: -``` +```nix :b (pkgs.nixosOptionsDoc { inherit ((lib.evalModules { modules = [ { config._module.check = false; } outputs.nixosModules.default ]; })) options; warningsAreErrors = false; }).optionsJSON ```