updated flake
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -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
|
||||
|
||||
@@ -44,8 +44,6 @@
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
|
||||
inherit system;
|
||||
|
||||
specialArgs = attrs;
|
||||
|
||||
};
|
||||
|
||||
@@ -64,12 +62,16 @@
|
||||
nixvim.nixosModules.nixvim
|
||||
|
||||
];
|
||||
|
||||
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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user