Add nixos/ directory with corrected modules

- kawa.nix: main module with fixed NATS options
- default.nix: default configuration
- kawa-base.nix: base module with NATS settings
- Hostname fixed (no /sys read)
- NATS: settings.http_port instead of httpPort
This commit is contained in:
Debian
2026-03-14 22:35:05 +00:00
parent 5ca9b06420
commit e4c41daf6e
3 changed files with 73 additions and 82 deletions

17
nixos/kawa-base.nix Normal file
View File

@@ -0,0 +1,17 @@
# KAWA Base - Module de base pour tous les nœuds
# Options NATS corrigées pour Nixpkgs récent
{ config, lib, pkgs, ... }:
{
imports = [ ./kawa.nix ];
# Configuration NATS corrigée
services.nats = {
enable = true;
settings = {
http_port = 8222;
port = 4222;
};
};
}