removed experimental system modules

This commit is contained in:
Bryan Ramos 2024-05-13 16:05:41 -04:00
parent 0d1d7aa28c
commit 7ba9dc50e7
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
19 changed files with 0 additions and 462 deletions

View file

@ -1,63 +0,0 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.modules.system.bitcoin;
in
{ options.modules.system.bitcoin = { enable = mkEnableOption "system.bitcoin"; };
imports = [ ./modules ];
config = mkIf cfg.enable {
programs.bash.shellAliases = {
btc = "bitcoin-cli";
};
users = {
users = {
"bitcoind" = {
description = "bitcoind system user";
isSystemUser = true;
group = "bitcoin";
home = /var/lib/bitcoind;
createHome = true;
};
};
groups = {
"bitcoin" = {
members = [ "clightning" "electrs" ];
};
};
};
services.bitcoind = {
"bitcoind" = {
enable = true;
testnet = false;
user = "bitcoind";
group = "bitcoin";
configFile = /var/lib/bitcoind/bitcoin.conf;
rpc = {
port = 8332;
};
extraConfig = ''
server=1
mempoolfullrbf=1
v2transport=1
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
proxy=127.0.0.1:9050
listen=1
listenonion=1
torcontrol=127.0.0.1:9051
torenablecircuit=1
'';
};
};
};
}