2022-08-23 08:18:37 +03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2022-08-15 03:49:56 +03:00
|
|
|
users.users.syncthing.extraGroups = ["users"];
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
devices.redmi-phone = {
|
|
|
|
id = builtins.readFile "${inputs.self}/secrets/redmi-phone.syncthing.id";
|
|
|
|
introducer = true;
|
|
|
|
autoAcceptFolders = true;
|
|
|
|
};
|
|
|
|
dataDir = "${config.system.persistDir}/syncthing";
|
|
|
|
};
|
|
|
|
}
|