manatee: Add syncthing module

This commit is contained in:
Alexander Heldt
2025-05-18 16:45:43 +02:00
parent c7b7a4f1d9
commit 80089dbb49
2 changed files with 37 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ in
git.enable = true; git.enable = true;
nginx.enable = true; nginx.enable = true;
syncthing.enable = true;
transmission.enable = true; transmission.enable = true;
audiobookshelf.enable = true; audiobookshelf.enable = true;
jellyfin.enable = true; jellyfin.enable = true;

View File

@@ -0,0 +1,36 @@
{ lib, config, ... }:
let
enabled = config.mod.syncthing.enable;
in
{
options = {
mod.syncthing = {
enable = lib.mkEnableOption "Enable syncthing module";
};
};
config = lib.mkIf enabled {
services.syncthing = {
enable = true;
user = "storage";
group = "storage";
dataDir = "/mnt/sync/public";
guiAddress = "0.0.0.0:8384";
settings = {
gui = {
user = "syncthing";
password = "$2a$12$YBcqhl8AXpoLmIWikuMtkOQLcrPXKKj0xY/qy4hggWnfjeVLQ3Ct6";
insecureSkipHostcheck = false;
};
devices = { };
folders = { };
};
};
};
}