forked from clan/clan-core
7 lines
281 B
Bash
Executable File
7 lines
281 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
expr='let pkgs = import <nixpkgs> {}; lib = pkgs.lib; in (pkgs.nixosOptionsDoc {options = (lib.evalModules {modules=[./example-interface.nix];}).options;}).optionsJSON.options'
|
|
|
|
jq < "$(nix eval --impure --raw --expr "$expr")" > options.json
|