omnixient/modules/packs/lnbits.nix
Padreug 2d7c936d80 feat(packs): bitcoin, lnbits and aiolabs lightning packs
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 09:59:05 +02:00

25 lines
899 B
Nix

# 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;
};
}