mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Repurpose nixnas1 as beancoin1
This includes configuring Nix Bitcoin within my existing flake. The intent is to run Bitcoin Core, LND, Electrs, Mempool, and Alby Hub here instead of via Umbrel. Note, Fulcrum was tried but kept crashing and losing state... which is not okay with me.
This commit is contained in:
parent
b5f96e9690
commit
72fca31cf3
11 changed files with 364 additions and 131 deletions
|
|
@ -1,7 +1,9 @@
|
|||
{ inputs, ... }: let
|
||||
mkDarwinHost = import ./mkDarwinHost.nix { inherit inputs; };
|
||||
mkNixosHost = import ./mkNixosHost.nix { inherit inputs; };
|
||||
mkNixBitcoinHost = import ./mkNixBitcoinHost.nix { inherit inputs; };
|
||||
in {
|
||||
inherit (mkDarwinHost) mkDarwinHost;
|
||||
inherit (mkNixosHost) mkNixosHost;
|
||||
inherit (mkNixBitcoinHost) mkNixBitcoinHost;
|
||||
}
|
||||
|
|
|
|||
36
lib/mkNixBitcoinHost.nix
Normal file
36
lib/mkNixBitcoinHost.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ inputs, ... }: {
|
||||
mkNixBitcoinHost = {
|
||||
system ? "x86_64-linux",
|
||||
hostname,
|
||||
username ? "gene",
|
||||
additionalModules ? [],
|
||||
additionalSpecialArgs ? {}
|
||||
}: inputs.nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs hostname username; } // additionalSpecialArgs;
|
||||
modules = [
|
||||
./nixpkgs-settings.nix
|
||||
|
||||
inputs.disko.nixosModules.disko
|
||||
inputs.nix-bitcoin.nixosModules.default
|
||||
inputs.sops-nix.nixosModules.sops # system wide secrets management
|
||||
|
||||
../modules/hosts/nixos # system-wide stuff
|
||||
../modules/hosts/nixos/${hostname} # host specific stuff
|
||||
|
||||
inputs.home-manager.nixosModules.home-manager {
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs hostname username; };
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.${username}.imports = [
|
||||
../modules/hosts/common
|
||||
../modules/hosts/common/linux/home.nix
|
||||
../modules/hosts/nixos/${hostname}/home-${username}.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
] ++ additionalModules;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue