nix_config/home/modules/syncthing.nix

21 lines
308 B
Nix
Raw Normal View History

2025-02-07 21:21:59 +01:00
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.services.syncthing;
in {
options.local.services.syncthing = {
enable = mkEnableOption "syncthing settings";
};
config = mkIf cfg.enable {
services.syncthing = {
enable = true;
tray.enable = true;
};
};
}