diff --git a/modules/bip110.nix b/modules/bip110.nix index a6cd617..b32b412 100755 --- a/modules/bip110.nix +++ b/modules/bip110.nix @@ -4,17 +4,13 @@ let cfg = config.sovran_systemsOS; 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) { + services.bitcoind.package = cfg.bip110.package; + + # Optional: also expose it in system packages if desired + environment.systemPackages = [ + cfg.bip110.package + ]; }; }