Add nats server
Some checks failed
Run nix flake check / flake-check (push) Failing after 17m6s
Periodic flake update / flake-update (push) Successful in 1m28s

This commit is contained in:
2025-02-08 00:26:53 +01:00
parent 4d2fbff6d0
commit c43e2aa063
7 changed files with 193 additions and 71 deletions

24
services/nats/default.nix Normal file
View File

@@ -0,0 +1,24 @@
{ ... }:
{
services.nats = {
enable = true;
jetstream = true;
serverName = "nats1";
settings = {
accounts = {
"ADMIN" = {
users = [
{
nkey = "UA44ZINQKUBTV7CX3RE7MVHOEQOQK2VQGCI4GL4M7XBJB4S66URHLW7A";
}
];
};
};
system_account = "ADMIN";
jetstream = {
max_mem = "1G";
max_file = "1G";
};
};
};
}