nixos/bees: ensure that hashtable can be locked into memory (#388422)

This commit is contained in:
isabel
2025-07-26 10:02:49 +01:00
committed by GitHub
+4
View File
@@ -119,6 +119,10 @@ in
"${pkgs.bees}/bin/bees-service-wrapper run ${configOptsStr} -- --no-timestamps ${lib.escapeShellArgs fs.extraOptions}"
];
SyslogIdentifier = "beesd"; # would otherwise be "bees-service-wrapper"
# Ensure that hashtable can be locked into memory
LimitMEMLOCK = "${toString fs.hashTableSizeMB}M";
MemoryMin = "${toString fs.hashTableSizeMB}M";
};
unitConfig.RequiresMountsFor = lib.mkIf (lib.hasPrefix "/" fs.spec) fs.spec;
wantedBy = [ "multi-user.target" ];