Compare commits
3 Commits
e1803a4edd
...
d208ad22db
Author | SHA1 | Date |
---|---|---|
coolneng | d208ad22db | |
coolneng | 5df1d226c8 | |
coolneng | 299e8b3227 |
|
@ -18,7 +18,8 @@
|
|||
image =
|
||||
"evanbuss/openbooks@sha256:16609c3da954715f8f98b5de6c838146914ae700b2a700b4d9aad8b23c9217da";
|
||||
ports = [ "127.0.0.1:9000:80" ];
|
||||
cmd = [ "--name" "bradar" "--searchbot" "searchook" "--persist" ];
|
||||
cmd =
|
||||
[ "--name" "john-khrafosta" "--searchbot" "searchook" "--persist" ];
|
||||
};
|
||||
# Prometheus MQTT integration
|
||||
mqtt2prometheus = {
|
||||
|
|
|
@ -7,80 +7,80 @@
|
|||
guiAddress = "0.0.0.0:8384";
|
||||
dataDir = "/vault/syncthing";
|
||||
key = config.age.secrets.syncthing.path;
|
||||
devices = {
|
||||
panacea.id =
|
||||
"NF4SYEJ-RSGPDEF-CDEYC3A-JWZMKNC-KG4FVQP-CZ5HRFY-XM22BZD-N7B6VAH";
|
||||
caravanserai.id =
|
||||
"MIRF73R-S7AV47R-VLWZUK2-TFCVQPV-FRYCPND-Y4VR3W2-ZAIQXZD-JAEQCAD";
|
||||
};
|
||||
extraOptions = {
|
||||
options = {
|
||||
settings = {
|
||||
extraOptions.options = {
|
||||
maxFolderConcurrency = 4;
|
||||
progressUpdateIntervalS = -1;
|
||||
};
|
||||
};
|
||||
folders = {
|
||||
Documents = {
|
||||
id = "wusdj-bfjkr";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Documents";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
devices = {
|
||||
panacea.id =
|
||||
"NF4SYEJ-RSGPDEF-CDEYC3A-JWZMKNC-KG4FVQP-CZ5HRFY-XM22BZD-N7B6VAH";
|
||||
caravanserai.id =
|
||||
"MIRF73R-S7AV47R-VLWZUK2-TFCVQPV-FRYCPND-Y4VR3W2-ZAIQXZD-JAEQCAD";
|
||||
};
|
||||
folders = {
|
||||
Documents = {
|
||||
id = "wusdj-bfjkr";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Documents";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
|
||||
Notes = {
|
||||
id = "kafhz-bfmzm";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Notes";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
Notes = {
|
||||
id = "kafhz-bfmzm";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Notes";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
|
||||
Music = {
|
||||
id = "2aqt7-vpprc";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Music";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
Music = {
|
||||
id = "2aqt7-vpprc";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Music";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
|
||||
Photos = {
|
||||
id = "mjibc-ustcg";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Photos";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
Photos = {
|
||||
id = "mjibc-ustcg";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Photos";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
|
||||
Projects = {
|
||||
id = "cjhmu-avy9v";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Projects";
|
||||
devices = [ "panacea" ];
|
||||
};
|
||||
Projects = {
|
||||
id = "cjhmu-avy9v";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Projects";
|
||||
devices = [ "panacea" ];
|
||||
};
|
||||
|
||||
Phone = {
|
||||
id = "m2007j20cg_vc7r-photos";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Photos/Phone";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
Phone = {
|
||||
id = "m2007j20cg_vc7r-photos";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Photos/Phone";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
|
||||
Files = {
|
||||
id = "tsk52-u6rbk";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Files";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
Files = {
|
||||
id = "tsk52-u6rbk";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Files";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
|
||||
Phone-screenshots = {
|
||||
id = "pp70r-pbr70";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Photos/Phone-screenshots";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
Phone-screenshots = {
|
||||
id = "pp70r-pbr70";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Photos/Phone-screenshots";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
|
||||
Audio = {
|
||||
id = "tarrs-5mxck";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Audio";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
Audio = {
|
||||
id = "tarrs-5mxck";
|
||||
type = "receiveonly";
|
||||
path = "/vault/syncthing/Audio";
|
||||
devices = [ "panacea" "caravanserai" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,16 +1,6 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
wireguard_port = 1194;
|
||||
|
||||
latest-ddclient = pkgs.ddclient.overrideAttrs (old: rec {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "ddclient";
|
||||
repo = "ddclient";
|
||||
rev = "3136871720a3c2abf730c9485edc351563765d0e";
|
||||
sha256 = "sha256-qb1DF0DaVbPgQokGx0t7VVk3pe3KuA8mNRPrBMzhWvU=";
|
||||
};
|
||||
});
|
||||
let wireguard_port = 1194;
|
||||
|
||||
in {
|
||||
# Enable systemd-networkd
|
||||
|
@ -38,11 +28,11 @@ in {
|
|||
enable = true;
|
||||
quiet = true;
|
||||
use = "web, web=freedns";
|
||||
package = latest-ddclient;
|
||||
interval = "30min";
|
||||
protocol = "duckdns";
|
||||
domains = [ "coolneng.duckdns.org" ];
|
||||
passwordFile = config.age.secrets.ddclient.path;
|
||||
extraConfig = "";
|
||||
};
|
||||
|
||||
# Firewall configuration
|
||||
|
|
Loading…
Reference in New Issue