move services

This commit is contained in:
Osman Faruk Bayram 2025-10-19 14:49:27 +03:00
parent 128005e354
commit feb53bc5fc
23 changed files with 28 additions and 28 deletions

View file

@ -0,0 +1,24 @@
{
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
};
})
];
}