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.
23 lines
528 B
Nix
23 lines
528 B
Nix
{ config, pkgs, ... }:
|
|
let
|
|
domain = "example.com";
|
|
in
|
|
{
|
|
imports = [
|
|
{ _module.args = { inherit domain; }; }
|
|
(import /var/src/config-shared {
|
|
inherit config pkgs domain;
|
|
})
|
|
|
|
# Import hardware-specific configuration
|
|
# This file is typically generated by nixos-generate-config
|
|
./hardware-configuration.nix
|
|
|
|
# Import boot configuration (bootloader settings)
|
|
./boot.nix
|
|
|
|
# Import any machine-specific services
|
|
# Comment out or remove if not needed
|
|
# ./example-service.nix
|
|
];
|
|
}
|