Merge branch 'main' of gh:greg-hellings/nixos-config

This commit is contained in:
Greg Hellings
2024-09-06 12:59:50 -05:00
2 changed files with 34 additions and 2 deletions
+1
View File
@@ -104,6 +104,7 @@ in {
foxyproxy-standard
multi-account-containers
octotree
okta-browser-plugin
refined-github
tree-style-tab
ublock-origin
+33 -2
View File
@@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
let
ip = "100.68.203.1";
@@ -15,10 +15,24 @@ in {
networking.firewall.allowedTCPPorts = with config.services; [
bitcoind.port
bitcoind.rpc.port
lnd.restPort
lnd.port
mempool.frontend.port
];
greg.backup.jobs = {
clightning = {
src = config.services.clightning.replication.local.directory;
dest = "hosea-clightning";
id = "clightning";
};
};
services = {
backups = {
enable = true;
frequency = "hourly";
};
bitcoind = {
enable = true;
address = "0.0.0.0";
@@ -31,11 +45,25 @@ in {
];
};
};
clightning.enable = true;
clightning = {
enable = true;
address = ip;
port = 9736;
replication = {
enable = true;
local.directory = "/var/backup/clightning";
encrypt = false;
};
};
electrs = {
enable = true;
address = ip;
};
lnd = {
enable = true;
address = ip;
lndconnect.enable = true;
};
mempool = {
enable = true;
frontend = {
@@ -44,4 +72,7 @@ in {
};
};
};
environment.systemPackages = with pkgs; [
];
}