flake/modules/nixos/services/syncthing.nix
2025-10-19 14:49:27 +03:00

24 lines
434 B
Nix

{
config,
lib,
...
}:
{
options = {
osbmModules.enableSyncthing = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable Syncthing file synchronization service";
};
};
config = lib.mkMerge [
(lib.mkIf config.osbmModules.enableSyncthing {
services.syncthing = {
enable = true;
openDefaultPorts = true;
# port is 8384
};
})
];
}