Refactor shared configuration and update LNBits service for improved domain handling

Updated shared.nix to enhance domain parameter propagation and modified configuration.nix to utilize the inherited domain for machine-specific setups. Adjusted example-service.nix to accept the domain as an argument, improving modularity. Additionally, added a new documentation file explaining the LNBits flake deployment process, detailing architecture, key components, and deployment instructions for better onboarding and understanding of the system.
This commit is contained in:
padreug 2025-10-12 08:52:56 +02:00
parent ca5b78b561
commit 30a1ae28f7
4 changed files with 273 additions and 8 deletions

View file

@ -2,8 +2,10 @@
{
imports = [
# Note: 'domain' is made available via _module.args in the machine's configuration.nix
# It's passed to this module and propagated to all imports automatically
/var/src/config-nginx
{ _module.args = { inherit domain; }; } # passes <mydomain.com> for nginx virtualHosts
/var/src/config-pict-rs
/var/src/config-lnbits
];