From 51c73b0e7c11d521de07a0cd7219bd5b1c7d6597 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 21 Nov 2022 17:00:17 -0600 Subject: [PATCH] adding bitcoin node to kohlin instead of dalinar --- README.org | 61 ++++++++++++++++----------------- flake.nix | 1 + system/kohlin/configuration.nix | 60 ++++++++++++++++---------------- 3 files changed, 60 insertions(+), 62 deletions(-) diff --git a/README.org b/README.org index 3604790..c739587 100644 --- a/README.org +++ b/README.org @@ -136,6 +136,7 @@ Both include the home-manager module. Primarily I chose that route so that I cou inherit system; modules = [ ./system/kohlin/configuration.nix + nix-bitcoin.nixosModules.default ]; }; }; @@ -1787,13 +1788,20 @@ Kohlin's config is of course server oriented. # List services that you want to enable: + nix-bitcoin = { + generateSecrets = true; + operator = { + enable = true; + name = "chris"; + }; + }; + services.locate = { enable = true; locate = pkgs.plocate; localuser = null; }; - # Enable the OpenSSH daemon. services.openssh.enable = true; services.fstrim.enable = true; services.logind = { @@ -1801,39 +1809,30 @@ Kohlin's config is of course server oriented. lidSwitchExternalPower = "ignore"; }; - # DDCLIENT - # services.ddclient = { - # enable = true; - # configFile = /home/chris/ddclient.conf; - #domains = [ - # "nc.cochrun.xyz" - # "home.cochrun.xyz" - # "mail.cochrun.xyz" - # "jelly.cochrun.xyz" - #]; - #passwordFile = "/etc/nixos/ddclientp"; - #protocol = "namecheap"; - #use = "web, web=dynamicdns.park-your-domain.com/getip"; - #server = "dynamicdns.park-your-domain.com"; - #username = "cochrun.xyz"; - #extraConfig = '' - #use=web, web=dynamicdns.park-your-domain.com/getip - #protocol=namecheap - #server=dynamicdns.park-your-domain.com - #login=livingseedco.shop - #password=e157e42337fc4ccd850d0a3904733f46 - #@ + services.monero = { + enable = false; + dataDir = "/storage/monero"; + }; - #use=web, web=dynamicdns.park-your-domain.com/getip - #protocol=namecheap - #server=dynamicdns.park-your-domain.com - #login=cochrun.xyz - #password=94602c373f9f4743838bf567def2eb72 - #@,nc.cochrun.xyz,home.cochrun.xyz,mail.cochrun.xyz,jelly.cochrun.xyz + services.bitcoind = { + enable = true; + listen = true; + dataDir = "/storage/bitcoind"; + dbCache = 5000; + }; + services.clightning = { + enable = true; + dataDir = "/storage/clightning"; + }; - #''; - # }; + services.rtl = { + enable = true; + dataDir = "/storage/rtl"; + nightTheme = true; + extraCurrency = "USD"; + nodes.clightning.enable = true; + }; # CADDY services.caddy = { diff --git a/flake.nix b/flake.nix index 5c821b2..658d2ac 100644 --- a/flake.nix +++ b/flake.nix @@ -109,6 +109,7 @@ inherit system; modules = [ ./system/kohlin/configuration.nix + nix-bitcoin.nixosModules.default ]; }; }; diff --git a/system/kohlin/configuration.nix b/system/kohlin/configuration.nix index f0d94d3..a88236d 100644 --- a/system/kohlin/configuration.nix +++ b/system/kohlin/configuration.nix @@ -178,13 +178,20 @@ # List services that you want to enable: + nix-bitcoin = { + generateSecrets = true; + operator = { + enable = true; + name = "chris"; + }; + }; + services.locate = { enable = true; locate = pkgs.plocate; localuser = null; }; - # Enable the OpenSSH daemon. services.openssh.enable = true; services.fstrim.enable = true; services.logind = { @@ -192,39 +199,30 @@ lidSwitchExternalPower = "ignore"; }; - # DDCLIENT - # services.ddclient = { - # enable = true; - # configFile = /home/chris/ddclient.conf; - #domains = [ - # "nc.cochrun.xyz" - # "home.cochrun.xyz" - # "mail.cochrun.xyz" - # "jelly.cochrun.xyz" - #]; - #passwordFile = "/etc/nixos/ddclientp"; - #protocol = "namecheap"; - #use = "web, web=dynamicdns.park-your-domain.com/getip"; - #server = "dynamicdns.park-your-domain.com"; - #username = "cochrun.xyz"; - #extraConfig = '' - #use=web, web=dynamicdns.park-your-domain.com/getip - #protocol=namecheap - #server=dynamicdns.park-your-domain.com - #login=livingseedco.shop - #password=e157e42337fc4ccd850d0a3904733f46 - #@ + services.monero = { + enable = false; + dataDir = "/storage/monero"; + }; - #use=web, web=dynamicdns.park-your-domain.com/getip - #protocol=namecheap - #server=dynamicdns.park-your-domain.com - #login=cochrun.xyz - #password=94602c373f9f4743838bf567def2eb72 - #@,nc.cochrun.xyz,home.cochrun.xyz,mail.cochrun.xyz,jelly.cochrun.xyz + services.bitcoind = { + enable = true; + listen = true; + dataDir = "/storage/bitcoind"; + dbCache = 5000; + }; + services.clightning = { + enable = true; + dataDir = "/storage/clightning"; + }; - #''; - # }; + services.rtl = { + enable = true; + dataDir = "/storage/rtl"; + nightTheme = true; + extraCurrency = "USD"; + nodes.clightning.enable = true; + }; # CADDY services.caddy = {