1 2 3 4 5 6 7 8 9 10 11 12 13 14
{ lib, config, pkgs, ... }: let cfg = config.my.home.syncthing; in { options.my.home.syncthing = with lib; { enable = mkEnableOption "syncthing configuration"; }; config.home = { services.syncthing = { enable = true; openDefaultPorts = true; }; }; }