mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-26 08:10:41 +03:00
27c45b82cc
This greatly improves readability and makes it easier to discover options. This commit was genereated by running the following script inside the repo root dir: #!/usr/bin/env ruby def transform(src) return false if src.include?('inherit options;') success = false options = nil src.sub!(/^ options.*?^ }.*?;/m) do |match| options = match " inherit options;" end return false if !options src.sub!(/^with lib;\s*let\n+/m) do |match| success = true <<~EOF with lib; let #{options} EOF end success end Dir['modules/**/*.nix'].each do |f| src = File.read(f) if transform(src) puts "Changed file #{f}" File.write(f, src) end 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 | ||
recurring-donations.nix | ||
security.nix | ||
spark-wallet.nix | ||
versioning.nix |