1
Fork 0

Update to latest nixpkgs stable, and autorestart syncthing to prevent leaks

This commit is contained in:
prescientmoon 2024-02-28 07:16:41 +01:00
parent b14753a625
commit a51a6e9add
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
3 changed files with 16 additions and 9 deletions
hosts/nixos/common/optional/services

View file

@ -27,6 +27,9 @@ in
};
};
# Syncthing seems to leak memory, so we want to restart it daily.
systemd.services.syncthing.serviceConfig.RuntimeMaxSec = "1d";
# I'm not sure this is needed anymore, I just know I got some ownership errors at some point.
systemd.tmpfiles.rules = [ "d ${dataDir} - ${user} ${group} -" ];
}