2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-03-28 19:52:15 -04:00
|
|
|
options = {
|
|
|
|
userServices.syncthing.enable =
|
|
|
|
lib.mkEnableOption "Enables syncthing as user.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.userServices.syncthing.enable {
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
};
|
|
|
|
}
|