updated flake

This commit is contained in:
2026-03-24 22:25:48 -05:00
parent c941cf56f1
commit 157af12aed
2 changed files with 22 additions and 7 deletions

View File

@@ -21,7 +21,7 @@
};
outputs = { self, nixpkgs, nix-bitcoin, nixvim, agenix, btc-clients, nixpkgs-stable, bip110, ... }@attrs:
outputs = { self, nixpkgs, nix-bitcoin, nixvim, agenix, btc-clients, nixpkgs-stable, bip110, ... }:
let
@@ -45,8 +45,6 @@
inherit system;
specialArgs = attrs;
};
nixosModules.Sovran_SystemsOS = { pkgs, ... }: {
@@ -65,11 +63,15 @@
];
config = {
sovran_systemsOS.bip110.package =
bip110.packages.${pkgs.system}.bitcoind-knots-bip-110;
};
environment.systemPackages = with pkgs; [
btc-clients.packages.x86_64-linux.bisq
btc-clients.packages.x86_64-linux.bisq2
btc-clients.packages.x86_64-linux.sparrow
bip110.packages.x86_64-linux.bitcoind-knots-bip-110
];
};
};

View File

@@ -1,7 +1,20 @@
{ config, lib, pkgs, bip110, ... }:
{ config, lib, pkgs, ... }:
lib.mkIf config.sovran_systemsOS.features.bip110 {
let
cfg = config.sovran_systemsOS;
in
{
options.sovran_systemsOS = {
features.bip110 = lib.mkEnableOption "Enable BIP110 bitcoind";
services.bitcoind.package = bip110.packages.x86_64-linux.bitcoind-knots-bip-110;
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;
};
}