Unverified Commit 3fca3331 authored by isabel's avatar isabel Committed by GitHub
Browse files

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

parents 44c708de 5e6d2501
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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" ];