nix-dotfiles/modules/software/system/syncthing.nix
2026-01-11 23:47:19 -08:00

23 lines
492 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.software.system.syncthing;
in {
options.modules.software.system.syncthing = {
enable = mkEnableOption "Enable Syncthing, a file synchronization server";
};
config = mkIf cfg.enable {
hm.services.syncthing = {
enable = true;
tray = {
enable = true;
package = pkgs.syncthingtray-minimal;
command = "syncthingtray --wait";
};
# TODO: add folders here
};
};
}