diff --git a/hosts/apollo/configuration.nix b/hosts/apollo/configuration.nix index f54f2efe..40bdb762 100644 --- a/hosts/apollo/configuration.nix +++ b/hosts/apollo/configuration.nix @@ -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; diff --git a/hosts/apollo/syncthing.nix b/hosts/apollo/syncthing.nix deleted file mode 100644 index b0843559..00000000 --- a/hosts/apollo/syncthing.nix +++ /dev/null @@ -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; - }; - }; - -} diff --git a/hosts/hera/configuration.nix b/hosts/hera/configuration.nix index c370ac1f..d0811ec8 100644 --- a/hosts/hera/configuration.nix +++ b/hosts/hera/configuration.nix @@ -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;