added system to dirs

This commit is contained in:
2025-10-13 22:25:43 -05:00
parent 962f44f05e
commit 8ec44dab44
12 changed files with 25 additions and 30 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;
};
};
}