<commit_before>{ lib, pkgs, config, ... }:
with lib;
let cfg = config.systemFoundry.syncthing;
in
{
  options.systemFoundry.syncthing = {
    enable = mkEnableOption ''
      syncthing
    '';
  };

  config = mkIf cfg.enable {
    services.syncthing = {
      enable = true;
      user = "kyle";
      group = "users";
      configDir = "/home/kyle/.config/syncthing";
      openDefaultPorts = true;
      overrideDevices = true;
      overrideFolders = true;
      devices = {
        # to get syncthing key you need to install syncthing first.
        "alpha" = { id = "G5I3OAK-5O57DWJ-ZKPP6R3-J3KPCVB-EWMVN3L-UCV7ONL-TNOW2DO-3SJ3YAD"; };
        "omega" = { id = "CWYMQLD-JVLVARV-WFEWGR7-URPPQF2-3AAMP5E-IJASRHK-S2OTCEP-PCWNGAF"; };
        "tiger" = { id = "MWIARYQ-NO6ZDWT-4KINIBB-RFVW57A-6EAIHJF-KAOL4RH-QR7XSIV-SRFMXQ5"; };
      };
      folders = {
        "testdir" = {
          path = "home/kyle/syncthing/test_sync_dir";
          devices = [ "alpha" "omega" ];
          #versioning = {
          #  type = "staggered";
          #  params = {
          #    cleanInterval = "3600"; # 1 hour
          #    maxAge = "15768000"; # 180 days
          #  };
          #};
        };
        "lightroom_catalog" = {
          path = "home/kyle/lightroom";
          devices = [ "alpha" "omega" ];
        };
      };
    };
  };
}<commit_msg>feat(syncthing): add synced_scratch folder<commit_after>{ lib, pkgs, config, ... }:
with lib;
let cfg = config.systemFoundry.syncthing;
in
{
  options.systemFoundry.syncthing = {
    enable = mkEnableOption ''
      syncthing
    '';
  };

  config = mkIf cfg.enable {
    services.syncthing = {
      enable = true;
      user = "kyle";
      group = "users";
      configDir = "/home/kyle/.config/syncthing";
      openDefaultPorts = true;
      overrideDevices = true;
      overrideFolders = true;
      devices = {
        # to get syncthing key you need to install syncthing first.
        "alpha" = { id = "G5I3OAK-5O57DWJ-ZKPP6R3-J3KPCVB-EWMVN3L-UCV7ONL-TNOW2DO-3SJ3YAD"; };
        "omega" = { id = "CWYMQLD-JVLVARV-WFEWGR7-URPPQF2-3AAMP5E-IJASRHK-S2OTCEP-PCWNGAF"; };
        "tiger" = { id = "MWIARYQ-NO6ZDWT-4KINIBB-RFVW57A-6EAIHJF-KAOL4RH-QR7XSIV-SRFMXQ5"; };
      };
      folders = {
        "testdir" = {
          path = "home/kyle/syncthing/test_sync_dir";
          devices = [ "alpha" "omega" ];
          #versioning = {
          #  type = "staggered";
          #  params = {
          #    cleanInterval = "3600"; # 1 hour
          #    maxAge = "15768000"; # 180 days
          #  };
          #};
        };
        "lightroom_catalog" = {
          path = "home/kyle/lightroom";
          devices = [ "alpha" "omega" ];
        };
        "synced_scratch" = {
          path = "home/kyle/synced_scratch";
          devices = [ "alpha" "omega" ];
        };
      };
    };
  };
}
{'fraction_non_alphanumeric': 0.1457532331352674, 'fraction_numerical': 0.029360363509262497, 'mean_word_length': 1.8763819095477388, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '509145', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1091, 'n_words': 163}