1
0
Fork 0

Fix filewatchers

This commit is contained in:
Malte Brandy 2019-12-16 01:36:51 +01:00
parent 39ecc90f02
commit a4d408c063
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
3 changed files with 3 additions and 18 deletions

View file

@ -92,6 +92,7 @@ in {
declarative = syncthing.declarativeWith [ "hera" ] "/home/maralorn/media";
};
};
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
cdark_net = {
enable = true;

View file

@ -1,17 +0,0 @@
{ config, lib, ... }:
with lib;
let me = config.m-0.private.me;
in {
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
services = mkIf config.m-0.standalone.enable {
syncthing = {
dataDir = "/home/${me.user}/.config/syncthing";
enable = true;
group = "users";
user = me.user;
openDefaultPorts = true;
};
};
}

View file

@ -58,7 +58,8 @@ in {
declarative = syncthing.declarativeWith [ "apollo" ] "/media";
};
};
systemd.tmpfiles.rules = [ "Z /media - maralorn nginx - -" ];
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
systemd.tmpfiles.rules = [ "Z /media 0750 maralorn nginx - -" ];
users.users.choreutes = {
linger = true;