Update to latest nixpkgs stable, and autorestart syncthing to prevent leaks
This commit is contained in:
parent
b14753a625
commit
a51a6e9add
3 changed files with 16 additions and 9 deletions
hosts/nixos/common/optional/services
|
@ -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} -" ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue