minimal bitcoin config

This commit is contained in:
Bryan Ramos 2026-03-12 21:42:32 -04:00
parent cf9b8b1951
commit 7b22f399e0
5 changed files with 140 additions and 15 deletions

View file

@ -0,0 +1,29 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.modules.system.tor;
in
{
options.modules.system.tor = {
enable = mkEnableOption "Tor";
};
config = mkIf cfg.enable {
services.tor = {
enable = true;
client = {
enable = true;
# SOCKS proxy on 127.0.0.1:9050
};
settings = {
ControlPort = 9051;
CookieAuthentication = true;
CookieAuthFileGroupReadable = true;
};
};
};
}