Skip to content

Repurpose nixnas1 as beancoin1#495

Draft
genebean wants to merge 1 commit intomainfrom
nbc
Draft

Repurpose nixnas1 as beancoin1#495
genebean wants to merge 1 commit intomainfrom
nbc

Conversation

@genebean
Copy link
Owner

@genebean genebean commented Jan 30, 2025

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.

Comment on lines +12 to +32
./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
];
};
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section still needs work - the reason this is in a different file within lib is that it is intended to be paired back and to support the "secure-node preset" from Nix Bitcoin

Comment on lines +7 to +11
# Optional:
# Import the secure-node preset, an opinionated config to enhance security
# and privacy.
#
#(inputs.nix-bitcoin + "/modules/presets/secure-node.nix")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this into lib/mkNixBitcoinHost.nix

Comment on lines +89 to +100
# Set this to enable nix-bitcoin's own backup service. By default, it
# uses duplicity to incrementally back up all important files in /var/lib to
# /var/lib/localBackups once a day.
backups.enable = true;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grab these with resetic

Comment on lines +97 to +106
# discover = true;
# getPublicAddressCmd = "";
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set to discover via Tailscale exit node

@genebean genebean force-pushed the nbc branch 2 times, most recently from d297976 to 6cf0860 Compare January 30, 2025 15:03
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant