Unverified Commit 5e6d2501 authored by Mikael Voss's avatar Mikael Voss
Browse files

nixos/bees: ensure that hashtable can be locked into memory

parent 7c7a1704
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" ];