Commit Graph
8 Commits
Author SHA1 Message Date
c5192146af nix: fix nixosModule and build (#1979)
* lnbits/settings: get LNBITS_COMMIT from envvar if available

There is no other way of setting the git commit at runtime, for build systems like Nix that allow you to hermetically define envvars derived from the source that will be available reproducibly at runtime

* nix: update potree2nix and nixosModule

This is a general refactor that gets everything building and passing the vmTest again

* Update nix/modules/lnbits-service.nix

---------

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2023-10-03 09:50:35 +01:00
MatthewCroughanandGitHub 28af0a2100 nix: add defaultText to services.lnbits.package (#803)
Without this, evaluating the module doesn't provide a default value visible on search.nixos.org
2022-08-03 09:52:04 +02:00
matthewcroughan 984f06239f nix: remove forAllSystems from nixosModule
This causes lnbits.nixosModules.default to exist, rather than
lnbits.nixosModules.aarch64-linux.default. The latter was a mistake.
2022-07-14 05:32:16 +01:00
matthewcroughan 6aa8330dc3 Start using Nix as a reproducible build tool 2022-07-08 11:06:26 +01:00
matthewcroughan 36e92765d3 treewide: use StaticFiles() rather than rel path
This commit is not exhaustive, and it is a trend in this codebase to not
use StaticFiles() and instead use relative paths. This means the code
cannot run anywhere other than the source code directory, as it will not
find the files it is looking for
2022-07-08 11:06:26 +01:00
matthewcroughan 49bd5ad26b lnbits/server.py: init
This adds a wrapper around uvicorn using Python. This is so the
entrypoint lnbits.server can be called on the command line, and passed
arguments like port and host. This makes lnbits feel more like a real
CLI application, and lends well to running as a service in systemd
2022-07-08 11:06:23 +01:00
matthewcroughan 50a5f47308 Add Poetry as a build system 2022-07-08 09:22:35 +01:00
matthewcroughan c4924bcf24 gitignore: add Nix ignores 2022-07-08 09:20:38 +01:00