Files
Sovran_SystemsOS/modules/bip110.nix
2026-03-24 23:06:28 -05:00

26 lines
525 B
Nix
Executable File

{ config, lib, pkgs, ... }:
let
cfg = config.sovran_systemsOS;
in
{
# ✅ Option definition
options.sovran_systemsOS.packages.bip110 = lib.mkOption {
type = lib.types.nullOr lib.types.package;
default = null;
description = "BIP110 Bitcoin package";
};
# ✅ Implementation
config = lib.mkIf (
cfg.features.bip110 &&
cfg.packages.bip110 != null
) {
services.bitcoind.package = lib.mkForce cfg.packages.bip110;
environment.systemPackages = [
cfg.packages.bip110
];
};
}