From ab7abb5c80ca9692deb2af4cf17b0fbff17dfe63 Mon Sep 17 00:00:00 2001 From: happysalada Date: Tue, 26 Nov 2024 02:13:20 -0500 Subject: [PATCH 1/2] nixos/meilisearch: format --- nixos/modules/services/search/meilisearch.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/search/meilisearch.nix b/nixos/modules/services/search/meilisearch.nix index 07c6a507074f..8f0f363efa1e 100644 --- a/nixos/modules/services/search/meilisearch.nix +++ b/nixos/modules/services/search/meilisearch.nix @@ -1,4 +1,9 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: with lib; @@ -8,7 +13,10 @@ let in { - meta.maintainers = with maintainers; [ Br1ght0ne happysalada ]; + meta.maintainers = with maintainers; [ + Br1ght0ne + happysalada + ]; meta.doc = ./meilisearch.md; ###### interface @@ -37,7 +45,10 @@ in environment = mkOption { description = "Defines the running environment of MeiliSearch."; default = "development"; - type = types.enum [ "development" "production" ]; + type = types.enum [ + "development" + "production" + ]; }; # TODO change this to LoadCredentials once possible From 4f456b4dece775dd5f5a5b13885843daf6151386 Mon Sep 17 00:00:00 2001 From: happysalada Date: Tue, 26 Nov 2024 02:14:47 -0500 Subject: [PATCH 2/2] nixos/meilisearch: add to systemPackages --- nixos/modules/services/search/meilisearch.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/services/search/meilisearch.nix b/nixos/modules/services/search/meilisearch.nix index 8f0f363efa1e..ed51e67a0da8 100644 --- a/nixos/modules/services/search/meilisearch.nix +++ b/nixos/modules/services/search/meilisearch.nix @@ -116,6 +116,10 @@ in ###### implementation config = mkIf cfg.enable { + + # used to restore dumps + environment.systemPackages = [ cfg.package ]; + systemd.services.meilisearch = { description = "MeiliSearch daemon"; wantedBy = [ "multi-user.target" ];