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.
This commit is contained in:
padreug 2025-10-09 15:43:03 +02:00
parent c27fb73f3e
commit f6c7a1c3f6

View file

@ -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";