Fix filewatchers
This commit is contained in:
parent
39ecc90f02
commit
a4d408c063
3 changed files with 3 additions and 18 deletions
|
@ -92,6 +92,7 @@ in {
|
||||||
declarative = syncthing.declarativeWith [ "hera" ] "/home/maralorn/media";
|
declarative = syncthing.declarativeWith [ "hera" ] "/home/maralorn/media";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
|
||||||
|
|
||||||
cdark_net = {
|
cdark_net = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
|
@ -58,7 +58,8 @@ in {
|
||||||
declarative = syncthing.declarativeWith [ "apollo" ] "/media";
|
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 = {
|
users.users.choreutes = {
|
||||||
linger = true;
|
linger = true;
|
||||||
|
|
Loading…
Reference in a new issue