nixos/services.manticore: remove `with lib;`

Changed files
+7 -10
nixos
modules
services
search
+7 -10
nixos/modules/services/search/manticore.nix
···
pkgs,
...
}:
-
-
with lib;
-
let
cfg = config.services.manticore;
···
toSphinx =
{
-
mkKeyValue ? generators.mkKeyValueDefault { } "=",
+
mkKeyValue ? lib.generators.mkKeyValueDefault { } "=",
listsAsDuplicateKeys ? true,
}:
attrsOfAttrs:
···
# map function to string for each key val
mapAttrsToStringsSep =
sep: mapFn: attrs:
-
concatStringsSep sep (mapAttrsToList mapFn attrs);
+
lib.concatStringsSep sep (lib.mapAttrsToList mapFn attrs);
mkSection =
sectName: sectValues:
''
···
options = {
services.manticore = {
-
enable = mkEnableOption "Manticoresearch";
+
enable = lib.mkEnableOption "Manticoresearch";
-
settings = mkOption {
+
settings = lib.mkOption {
default = {
searchd = {
listen = [
···
<https://manual.manticoresearch.com/Server%20settings>
for more information.
'';
-
type = types.submodule {
+
type = lib.types.submodule {
freeformType = format.type;
};
-
example = literalExpression ''
+
example = lib.literalExpression ''
{
searchd = {
listen = [
···
};
};
-
config = mkIf cfg.enable {
+
config = lib.mkIf cfg.enable {
systemd = {
packages = [ pkgs.manticoresearch ];