Correction to network

This commit is contained in:
jeirmeister 2025-09-12 12:57:05 -07:00
parent 816ecc0d23
commit b18c144017

View file

@ -1,28 +1,3 @@
{
description = "BTCPay server, NBXplorer, Bitcoin Core, etc. as a NixOS system/container image";
inputs = {
nix-bitcoin.url = "github:fort-nix/nix-bitcoin/release";
nixpkgs.follows = "nix-bitcoin/nixpkgs";
nixos-generators.url = "github:nix-community/nixos-generators";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
nix-bitcoin,
nixos-generators,
flake-utils,
...
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {inherit system;};
in {
nixosConfigurations.btc-pay-server = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
nix-bitcoin.nixosModules.default
({ ({
config, config,
pkgs, pkgs,
@ -49,7 +24,7 @@
allowip = ["10.1.1.0/24"]; # Adjust if needed allowip = ["10.1.1.0/24"]; # Adjust if needed
}; };
regtest = false; regtest = false;
network = "mainnet"; # Remove this line: network = "mainnet"; # nix-bitcoin sets it by default
dataDirReadableByGroup = false; dataDirReadableByGroup = false;
disablewallet = null; disablewallet = null;
dbCache = 4000; dbCache = 4000;
@ -116,24 +91,3 @@
# State version # State version
system.stateVersion = "25.05"; system.stateVersion = "25.05";
}) })
];
};
# Your devShell remains the same
devShells = flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {inherit system;};
in {
default = pkgs.mkShell {
buildInputs = [
nixos-generators.packages.${system}.nixos-generate
pkgs.just
];
shellHook = ''
echo "💚 Devshell ready: nixos-generate, just available."
'';
};
}
);
};
}