- Topics now default to systant/{hostname}/stats and systant/{hostname}/commands
- Runtime config automatically includes system hostname in topics
- NixOS module defaults use config.networking.hostName
- Supports multiple hosts without topic conflicts
- Environment variables can still override if needed
Example: systant/orion/stats, systant/server2/stats, etc.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
818 B
Nix
33 lines
818 B
Nix
{
|
|
lib,
|
|
beamPackages,
|
|
fetchgit,
|
|
}:
|
|
|
|
beamPackages.mixRelease rec {
|
|
pname = "systant";
|
|
version = "0.1.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.ryanpandya.com/ryan/systant.git";
|
|
rev = "54f8d23945bcea17127631a81f8ac318bf7047a6";
|
|
sha256 = "sha256-1cRfSoH+JdO4a7q4hRZSkoDMk2wMCYRIyCIN56FSUgg=";
|
|
};
|
|
|
|
# Mix dependencies will be automatically fetched and cached by Nix
|
|
mixFodDeps = beamPackages.fetchMixDeps {
|
|
pname = "systant-mix-deps";
|
|
inherit src version;
|
|
sha256 = "sha256-g8L/ZzCaXznrd+YLCMgvV94NVTKoFnK/Y/RXXPIMAjg=";
|
|
};
|
|
|
|
|
|
meta = with lib; {
|
|
description = "Systant - System stats MQTT daemon for monitoring system metrics";
|
|
homepage = "https://git.ryanpandya.com/ryan/systant";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|