mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
[Backport release-25.05] nixos/garage: set LimitNOFILE (#429643)
This commit is contained in:
@@ -147,6 +147,8 @@ in
|
||||
NoNewPrivileges = true;
|
||||
EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile;
|
||||
ReadWritePaths = lib.filter (x: !(isDefault x)) (lib.flatten [ paths ]);
|
||||
# Upstream recommendation https://garagehq.deuxfleurs.fr/documentation/cookbook/systemd/
|
||||
LimitNOFILE = 42000;
|
||||
};
|
||||
environment = {
|
||||
RUST_LOG = lib.mkDefault "garage=${cfg.logLevel}";
|
||||
|
||||
Reference in New Issue
Block a user