diff --git a/config/shared.nix b/config/shared.nix index 8e9023d..7ff887e 100644 --- a/config/shared.nix +++ b/config/shared.nix @@ -3,13 +3,14 @@ { imports = [ ./nginx.nix - ./pict-rs.nix ./modules/lnbits-service.nix + { _module.args = { inherit domain; }; } + ./pict-rs.nix ./lnbits.nix ]; - # Set hostname (passed as parameter) - networking.hostName = domain; + # Set hostname (extract from domain, e.g., "4lpaca" from "4lpaca.io") + networking.hostName = builtins.head (pkgs.lib.splitString "." domain); # System packages environment.systemPackages = with pkgs; [