updated bip110 module
This commit is contained in:
@@ -4,17 +4,13 @@ let
|
|||||||
cfg = config.sovran_systemsOS;
|
cfg = config.sovran_systemsOS;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.sovran_systemsOS = {
|
|
||||||
features.bip110 = lib.mkEnableOption "Enable BIP110 bitcoind";
|
|
||||||
|
|
||||||
bip110.package = lib.mkOption {
|
|
||||||
type = lib.types.nullOr lib.types.package;
|
|
||||||
default = null;
|
|
||||||
description = "Custom bitcoind package for BIP110";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf (cfg.features.bip110 && cfg.bip110.package != null) {
|
config = lib.mkIf (cfg.features.bip110 && cfg.bip110.package != null) {
|
||||||
|
|
||||||
services.bitcoind.package = cfg.bip110.package;
|
services.bitcoind.package = cfg.bip110.package;
|
||||||
|
|
||||||
|
# Optional: also expose it in system packages if desired
|
||||||
|
environment.systemPackages = [
|
||||||
|
cfg.bip110.package
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user