b1e13e9415
Each secret file to be deployed is now backed by one local file. This simplifies 'setup-secrets' and the secret definitions. Also, with the old format it was not possible to add new secrets to secrets.nix in a simple way. Old secrets are automatically converted to the new format when running nix-shell. Using the new option 'nix-bitcoin.secrets', secrets are now directly defined by the services that use them.
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
nixpkgs-pinned = import ../pkgs/nixpkgs-pinned.nix;
|
|
unstable = import nixpkgs-pinned.nixpkgs-unstable {};
|
|
|
|
allPackages = pkgs: (import ../pkgs { inherit pkgs; }) // {
|
|
bitcoin = unstable.bitcoin.override { miniupnpc = null; };
|
|
bitcoind = unstable.bitcoind.override { miniupnpc = null; };
|
|
clightning = unstable.clightning;
|
|
lnd = unstable.lnd;
|
|
};
|
|
in {
|
|
imports = [
|
|
./bitcoind.nix
|
|
./clightning.nix
|
|
./lightning-charge.nix
|
|
./nanopos.nix
|
|
./nix-bitcoin-webindex.nix
|
|
./liquid.nix
|
|
./spark-wallet.nix
|
|
./electrs.nix
|
|
./onion-chef.nix
|
|
./recurring-donations.nix
|
|
./hardware-wallets.nix
|
|
./lnd.nix
|
|
./secrets/secrets.nix
|
|
];
|
|
|
|
disabledModules = [ "services/networking/bitcoind.nix" ];
|
|
|
|
options = {
|
|
nix-bitcoin-services = lib.mkOption {
|
|
readOnly = true;
|
|
default = import ./nix-bitcoin-services.nix lib;
|
|
};
|
|
};
|
|
|
|
config = {
|
|
nixpkgs.overlays = [ (self: super: {
|
|
nix-bitcoin = allPackages super;
|
|
}) ];
|
|
};
|
|
}
|