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>
This commit is contained in:
Matthew Croughan
2023-10-03 09:50:35 +01:00
committed by GitHub
parent 542273a8d9
commit c5192146af
4 changed files with 66 additions and 7 deletions

View File

@ -1,5 +1,6 @@
{ pkgs, makeTest, inputs }:
makeTest {
name = "lnbits-nixos-module";
nodes = {
client = { config, pkgs, ... }: {
environment.systemPackages = [ pkgs.curl ];