diff --git a/config/lnbits.nix b/config/lnbits.nix index 9411ae8..e06b0c5 100644 --- a/config/lnbits.nix +++ b/config/lnbits.nix @@ -114,16 +114,16 @@ in # # Option 2: Manually merge deployed extensions with existing ones # Copy deployed extensions into the extensions directory without replacing it: - # systemd.tmpfiles.rules = [ - # "d /var/src/lnbits-extensions 0755 root root - -" - # ]; - # systemd.services.lnbits-copy-extensions = { - # description = "Copy deployed LNBits extensions"; - # before = [ "lnbits.service" ]; - # wantedBy = [ "lnbits.service" ]; - # serviceConfig = { - # Type = "oneshot"; - # ExecStart = "${pkgs.bash}/bin/bash -c '${pkgs.rsync}/bin/rsync -av /var/src/lnbits-extensions/ /var/lib/lnbits/extensions/ && ${pkgs.coreutils}/bin/chown -R lnbits:lnbits /var/lib/lnbits/extensions/'"; - # }; - # }; + systemd.tmpfiles.rules = [ + "d /var/src/lnbits-extensions 0755 root root - -" + ]; + systemd.services.lnbits-copy-extensions = { + description = "Copy deployed LNBits extensions"; + before = [ "lnbits.service" ]; + wantedBy = [ "lnbits.service" ]; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.bash}/bin/bash -c '${pkgs.rsync}/bin/rsync -av /var/src/lnbits-extensions/ /var/lib/lnbits/extensions/ && ${pkgs.coreutils}/bin/chown -R lnbits:lnbits /var/lib/lnbits/extensions/'"; + }; + }; }