manatee: Add syncthing module
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
36
hosts/manatee/modules/syncthing/default.nix
Normal file
36
hosts/manatee/modules/syncthing/default.nix
Normal 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 = { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user