feat(packs): bitcoin, lnbits and aiolabs lightning packs

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-06-28 06:48:37 +02:00
commit 2d7c936d80
3 changed files with 85 additions and 0 deletions

25
modules/packs/lnbits.nix Normal file
View file

@ -0,0 +1,25 @@
# lnbits pack — the LNbits multi-project dev environment.
#
# STANDALONE-IMPORTABLE: imports the dev-env module and enables it, so a
# third party importing only `nixosModules.lnbits` onto their own NixOS
# gets the full dev environment (worktrees, regtest, tmux, pre-commit
# hook) without needing omni core. dev-env was decoupled from omni.*
# in an earlier commit precisely to make this possible. (This is what lets
# the standalone lnbits-sensei scaffold be retired — see P8.)
#
# Configure the environment via the standard dev-env.* options
# (dev-env.user, dev-env.root, dev-env.projects, …).
{ config, lib, ... }:
let
cfg = config.omni.packs.lnbits;
in
{
imports = [ ../dev-env ];
options.omni.packs.lnbits.enable =
lib.mkEnableOption "LNbits dev-environment pack (worktrees, regtest, tmux)";
config = lib.mkIf cfg.enable {
dev-env.enable = lib.mkDefault true;
};
}