feat(nixosModules/server): add librechat service

This commit is contained in:
Mohammad Rafiq 2025-05-29 22:19:27 +08:00
parent 0b2192986f
commit a24d727134
No known key found for this signature in database
3 changed files with 78 additions and 8 deletions

View file

@ -1,6 +1,6 @@
{ lib, pkgs, ... }:
{ lib, config, ... }:
{
environment.systemPackages = [ pkgs.librechat ];
system = {
hostname = "nemesis";
mainUser.name = "rafiq";
@ -49,6 +49,15 @@
}
];
};
librechat = {
enable = true;
mongodbURI = "mongodb://apollo:27017";
creds_key_file = config.sops.secrets."librechat/creds_key".path;
creds_iv_file = config.sops.secrets."librechat/creds_iv".path;
jwt_secret_file = config.sops.secrets."librechat/jwt_secret".path;
jwt_refresh_secret_file = config.sops.secrets."librechat/jwt_refresh_secret".path;
meili_master_key_file = config.sops.secrets."librechat/meili_master_key".path;
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";