2025-01-07 20:55:58 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
2025-03-05 15:09:06 +00:00
|
|
|
cfg = config.homeManagerModules.syncthing;
|
2025-01-07 20:55:58 +00:00
|
|
|
in
|
|
|
|
{
|
2025-03-05 15:09:06 +00:00
|
|
|
options.homeManagerModules.syncthing.enable = mkEnableOption "Enable syncthing";
|
2025-01-07 20:55:58 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
};
|
|
|
|
}
|