add syncthing

This commit is contained in:
2025-11-01 21:00:46 -05:00
parent f1e9914ea1
commit d4bcd95d52
7 changed files with 103 additions and 36 deletions

View File

@@ -0,0 +1,21 @@
{ pkgs, config, lib, ... }:
let
cfg = config.system.syncthing;
in
{
options.system.syncthing = {
enable = lib.mkEnableOption "enables syncthing";
};
config = lib.mkIf cfg.enable {
services.syncthing = {
enable = true;
# user = "blake";
# group = "blake";
# dataDir = "/var/lib/syncthing";
guiAddress = "0.0.0.0:2222";
# openDefaultPorts = true;
};
};
}