feat(nixosModules/server): add librechat service
This commit is contained in:
parent
0b2192986f
commit
a24d727134
3 changed files with 78 additions and 8 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue