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 "${pkgs.bees}/bin/bees-service-wrapper run ${configOptsStr} -- --no-timestamps ${lib.escapeShellArgs fs.extraOptions}" 120 ]; 121 SyslogIdentifier = "beesd"; # would otherwise be "bees-service-wrapper" 122 }; 123 unitConfig.RequiresMountsFor = lib.mkIf (lib.hasPrefix "/" fs.spec) fs.spec; 124 wantedBy = [ "multi-user.target" ];
··· 119 "${pkgs.bees}/bin/bees-service-wrapper run ${configOptsStr} -- --no-timestamps ${lib.escapeShellArgs fs.extraOptions}" 120 ]; 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"; 126 }; 127 unitConfig.RequiresMountsFor = lib.mkIf (lib.hasPrefix "/" fs.spec) fs.spec; 128 wantedBy = [ "multi-user.target" ];