From f6c7a1c3f6927b4c55b589dbe71a0f1a0c1d891c Mon Sep 17 00:00:00 2001 From: padreug Date: Thu, 9 Oct 2025 15:43:03 +0200 Subject: [PATCH] Update LNBits configuration to use deployed flake source and improve package management Modified the LNBits service configuration to accept 'pkgs' as an argument and updated the package reference to use the deployed flake source located at '/var/src/lnbits-src'. This change enhances the flexibility and maintainability of the configuration by ensuring it aligns with the current deployment structure. --- config/lnbits.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/lnbits.nix b/config/lnbits.nix index 8d25e3d..28d6545 100644 --- a/config/lnbits.nix +++ b/config/lnbits.nix @@ -1,4 +1,4 @@ -{ domain, ... }: +{ domain, pkgs, ... }: { # LNBits service configuration @@ -8,7 +8,8 @@ port = 5000; openFirewall = true; stateDir = "/var/lib/lnbits"; - package = (builtins.getFlake "path:/etc/nixos/sources/lnbits").packages.x86_64-linux.lnbits; + # Use lnbits from deployed flake source at /var/src/lnbits-src + package = (builtins.getFlake "path:/var/src/lnbits-src").packages.${pkgs.system}.lnbits; env = { LNBITS_ADMIN_UI = "true"; AUTH_ALLOWED_METHODS = "user-id-only, username-password";