This commit is contained in:
Bryan Ramos 2024-02-28 15:45:10 -05:00
parent 036db0b3b9
commit 203170a88f
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
66 changed files with 169 additions and 54 deletions

View file

@ -1,38 +0,0 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.modules.corn;
in
{ options.modules.corn = { enable = mkEnableOption "corn"; };
imports = [
./core-lightning
./sparrow-cli
];
config = mkIf cfg.enable {
users = {
users = {
"bitcoind" = {
description = "bitcoind system user";
isSystemUser = true;
group = "bitcoin";
};
};
groups = {
"bitcoin" = {
members = [ "core-lightning" "electrs" ];
};
};
};
services.bitcoind = {
"main-net" = {
enable = true;
user = "bitcoind";
group = "bitcoin";
};
};
};
}