nixos/garage: set LimitNOFILE (#429633)
Upstream uses 42000, see: https://garagehq.deuxfleurs.fr/documentation/cookbook/systemd/
This commit is contained in:
@@ -147,6 +147,8 @@ in
|
|||||||
NoNewPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile;
|
EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile;
|
||||||
ReadWritePaths = lib.filter (x: !(isDefault x)) (lib.flatten [ paths ]);
|
ReadWritePaths = lib.filter (x: !(isDefault x)) (lib.flatten [ paths ]);
|
||||||
|
# Upstream recommendation https://garagehq.deuxfleurs.fr/documentation/cookbook/systemd/
|
||||||
|
LimitNOFILE = 42000;
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
RUST_LOG = lib.mkDefault "garage=${cfg.logLevel}";
|
RUST_LOG = lib.mkDefault "garage=${cfg.logLevel}";
|
||||||
|
|||||||
Reference in New Issue
Block a user