Files
nix/modules/system/syncthing/default.nix
2025-10-25 14:36:52 -05:00

22 lines
409 B
Nix
Executable File

{ 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;
};
};
}