feat(kafka): import kafka module and configure basic service
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8cc2154b18
commit
efe230ba65
2 changed files with 26 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
{ config, pkgs, lib, inputs, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
inputs.kafka.nixosModules.default
|
||||
];
|
||||
|
||||
# Workaround for https://github.com/NixOS/nix/issues/8502
|
||||
|
|
@ -158,6 +159,8 @@
|
|||
sops.secrets.forgejo_url = { };
|
||||
sops.secrets.forgejo_token = { };
|
||||
sops.secrets.forgejo_user = { };
|
||||
sops.secrets.tng_api_key = { };
|
||||
sops.secrets.minimax_api_key = { };
|
||||
|
||||
sops.templates."openclaw.env" = {
|
||||
content = ''
|
||||
|
|
@ -169,9 +172,27 @@
|
|||
FORGEJO_URL=${config.sops.placeholder.forgejo_url}
|
||||
FORGEJO_TOKEN=${config.sops.placeholder.forgejo_token}
|
||||
FORGEJO_USER=${config.sops.placeholder.forgejo_user}
|
||||
TNG_API_KEY=${config.sops.placeholder.tng_api_key}
|
||||
MINIMAX_API_KEY=${config.sops.placeholder.minimax_api_key}
|
||||
'';
|
||||
};
|
||||
|
||||
# === gosearch (kafka) config template ===
|
||||
sops.templates."kafka-config.toml" = {
|
||||
content = ''
|
||||
[server]
|
||||
port = 8889
|
||||
'';
|
||||
};
|
||||
|
||||
# === kafka Metasearch Engine ===
|
||||
services.kafka = {
|
||||
enable = true;
|
||||
port = 8889;
|
||||
baseUrl = "https://search2.ashisgreat.xyz";
|
||||
config = config.sops.templates."kafka-config.toml".path;
|
||||
};
|
||||
|
||||
# === Vaultwarden ===
|
||||
myModules.vaultwarden = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue