Merge fort-nix/nix-bitcoin#591: Readme: Add mempool flake
bf8de6744e
README: add mempool extension module (Erik Arvstedt)c12ff6251d
README: add some module descriptions (Erik Arvstedt)2c3fa63baa
dev/features: improve `enter_service` (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: ACKbf8de6744e
Tree-SHA512: 6bda4aa87656e60bac8bf7acb1831984935602ea599e9e3244cca18f1cf5b4d97ccd9918e12145990a374292af5dda5ad35ecae87596860102f61cf9e6401854
This commit is contained in:
commit
cd4060fc7f
14
README.md
14
README.md
@ -88,10 +88,10 @@ NixOS modules ([src](modules/modules.nix))
|
|||||||
* [lndconnect](https://github.com/LN-Zap/lndconnect): connect your wallet to lnd or clightning via a REST onion service
|
* [lndconnect](https://github.com/LN-Zap/lndconnect): connect your wallet to lnd or clightning via a REST onion service
|
||||||
* [Ride The Lightning](https://github.com/Ride-The-Lightning/RTL): web interface for `lnd` and `clightning`
|
* [Ride The Lightning](https://github.com/Ride-The-Lightning/RTL): web interface for `lnd` and `clightning`
|
||||||
* [spark-wallet](https://github.com/shesek/spark-wallet)
|
* [spark-wallet](https://github.com/shesek/spark-wallet)
|
||||||
* [electrs](https://github.com/romanz/electrs)
|
* [electrs](https://github.com/romanz/electrs): Electrum server
|
||||||
* [fulcrum](https://github.com/cculianu/Fulcrum) (see [the module](modules/fulcrum.nix) for a comparison to electrs)
|
* [fulcrum](https://github.com/cculianu/Fulcrum): Electrum server (see [the module](modules/fulcrum.nix) for a comparison with electrs)
|
||||||
* [btcpayserver](https://github.com/btcpayserver/btcpayserver)
|
* [btcpayserver](https://github.com/btcpayserver/btcpayserver)
|
||||||
* [liquid](https://github.com/elementsproject/elements)
|
* [liquid](https://github.com/elementsproject/elements): federated sidechain
|
||||||
* [JoinMarket](https://github.com/joinmarket-org/joinmarket-clientserver)
|
* [JoinMarket](https://github.com/joinmarket-org/joinmarket-clientserver)
|
||||||
* [JoinMarket Orderbook Watcher](https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/master/docs/orderbook.md)
|
* [JoinMarket Orderbook Watcher](https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/master/docs/orderbook.md)
|
||||||
* [bitcoin-core-hwi](https://github.com/bitcoin-core/HWI)
|
* [bitcoin-core-hwi](https://github.com/bitcoin-core/HWI)
|
||||||
@ -99,7 +99,13 @@ NixOS modules ([src](modules/modules.nix))
|
|||||||
* [netns-isolation](modules/netns-isolation.nix): isolates applications on the network-level via network namespaces
|
* [netns-isolation](modules/netns-isolation.nix): isolates applications on the network-level via network namespaces
|
||||||
* [nodeinfo](modules/nodeinfo.nix): script which prints info about the node's services
|
* [nodeinfo](modules/nodeinfo.nix): script which prints info about the node's services
|
||||||
* [backups](modules/backups.nix): duplicity backups of all your node's important files
|
* [backups](modules/backups.nix): duplicity backups of all your node's important files
|
||||||
* [operator](modules/operator.nix): adds non-root user `operator` who has access to client tools (e.g. `bitcoin-cli`, `lightning-cli`)
|
* [operator](modules/operator.nix): configures a non-root user who has access to client tools (e.g. `bitcoin-cli`, `lightning-cli`)
|
||||||
|
|
||||||
|
### Extension modules
|
||||||
|
Extension modules are maintained in separate repositories and have their own review
|
||||||
|
and release process.
|
||||||
|
|
||||||
|
* [Mempool](https://github.com/fort-nix/nix-bitcoin-mempool): Bitcoin visualizer, explorer and API service
|
||||||
|
|
||||||
Security
|
Security
|
||||||
---
|
---
|
||||||
|
@ -56,9 +56,10 @@ ls -al /var/lib/containers/nb-test
|
|||||||
# Start a shell in the context of a service process.
|
# Start a shell in the context of a service process.
|
||||||
# Must be run inside the container (enter with cmd `c`).
|
# Must be run inside the container (enter with cmd `c`).
|
||||||
enter_service() {
|
enter_service() {
|
||||||
local name=$1
|
name=$1
|
||||||
nsenter --all -t "$(systemctl show -p MainPID --value "$name")" \
|
pid=$(systemctl show -p MainPID --value "$name")
|
||||||
--setuid "$(id -u "$name")" --setgid "$(id -g "$name")" bash
|
IFS=- read -r uid gid < <(stat -c "%u-%g" "/proc/$pid")
|
||||||
|
nsenter --all -t "$pid" --setuid "$uid" --setgid "$gid" bash
|
||||||
}
|
}
|
||||||
enter_service clightning
|
enter_service clightning
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user