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

authored by isabelroses.com and committed by GitHub 3fca3331 44c708de

+4
+4
nixos/modules/services/misc/bees.nix
··· 119 119 "${pkgs.bees}/bin/bees-service-wrapper run ${configOptsStr} -- --no-timestamps ${lib.escapeShellArgs fs.extraOptions}" 120 120 ]; 121 121 SyslogIdentifier = "beesd"; # would otherwise be "bees-service-wrapper" 122 + 123 + # Ensure that hashtable can be locked into memory 124 + LimitMEMLOCK = "${toString fs.hashTableSizeMB}M"; 125 + MemoryMin = "${toString fs.hashTableSizeMB}M"; 122 126 }; 123 127 unitConfig.RequiresMountsFor = lib.mkIf (lib.hasPrefix "/" fs.spec) fs.spec; 124 128 wantedBy = [ "multi-user.target" ];