mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 22:33:46 +03:00
3681f118f7
This enables generating module option documentation. This commit was genereated by running the following script inside the repo root dir: def add_default_text(file) src = File.read(file) src2 = src.gsub(/( = mkOption\s+\{[^{]*?)(\n\s+default = )(.*?);$(.*?\})/m) do |str| pre, defaultVar, default, post = Regexp.last_match.captures replacement = if !post.include?('defaultText =') if default =~ /\bpkgs\b/ defaultText = default.lines.length == 1 ? default : "(See source)" "#{pre}#{defaultVar}#{default};#{defaultVar.sub('default', 'defaultText')}#{defaultText.inspect};#{post}" end end replacement or str end File.write(file, src2) if src2 != src end Dir["modules/**/*.nix"].each do |f| next if File.basename(f) == "nix-bitcoin.nix" add_default_text f end |
||
---|---|---|
.. | ||
clightning-plugins | ||
deployment | ||
presets | ||
secrets | ||
backups.nix | ||
banlist.cli.txt | ||
bitcoind-rpc-public-whitelist.nix | ||
bitcoind.nix | ||
btcpayserver.nix | ||
charge-lnd.nix | ||
clightning.nix | ||
default.nix | ||
electrs.nix | ||
hardware-wallets.nix | ||
joinmarket-ob-watcher.nix | ||
joinmarket.nix | ||
lightning-loop.nix | ||
lightning-pool.nix | ||
liquid.nix | ||
lnd-rest-onion-service.nix | ||
lnd.nix | ||
modules.nix | ||
netns-isolation.nix | ||
nix-bitcoin.nix | ||
nodeinfo.nix | ||
obsolete-options.nix | ||
onion-addresses.nix | ||
onion-services.nix | ||
operator.nix | ||
rtl.nix | ||
security.nix | ||
spark-wallet.nix | ||
versioning.nix |