ark/modules/syncthing/default.nix
2022-08-23 08:18:37 +03:00

17 lines
360 B
Nix

{
config,
inputs,
...
}: {
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";
};
}