1
0
Fork 0
nixos-config/system/snippets/syncthing.nix
2018-02-09 00:51:40 +01:00

17 lines
448 B
Nix

let
unstable = import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz) {};
in
{
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
services = {
syncthing = {
dataDir = "/home/maralorn/.config/syncthing";
enable = true;
group = "users";
user = "maralorn";
openDefaultPorts = true;
useInotify = true;
package = unstable.syncthing;
};
};
}