2024-12-08 04:04:34 +03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.module.syncthing;
|
|
|
|
in {
|
2024-12-08 07:17:06 +03:00
|
|
|
# NOTE: Access at `http://localhost:8384`.
|
|
|
|
options.module.syncthing = {
|
|
|
|
enable = lib.mkEnableOption "the file sync.";
|
|
|
|
dataDir = lib.mkOption {
|
|
|
|
default = "/home/${cfg.user}/sync";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
settings = lib.mkOption {
|
|
|
|
default = { };
|
|
|
|
type = lib.types.attrs;
|
|
|
|
};
|
|
|
|
user = lib.mkOption {
|
|
|
|
default = "voronind";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
group = lib.mkOption {
|
|
|
|
default = "users";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-12-08 04:04:34 +03:00
|
|
|
};
|
|
|
|
}
|