nix machine / user configurations
1{ 2 config, 3 inputs, 4 ... 5}: 6{ 7 users.users.syncthing.extraGroups = [ "users" ]; 8 services.syncthing = { 9 enable = true; 10 devices.redmi-phone = { 11 id = builtins.readFile "${inputs.self}/secrets/redmi-phone.syncthing.id"; 12 introducer = true; 13 autoAcceptFolders = true; 14 }; 15 dataDir = "${config.system.persistDir}/syncthing"; 16 }; 17}