- MQTT client with configurable broker connection - Periodic system stats publishing (30s interval) - Command listening on MQTT topic with logging - Systemd service configuration - NixOS module for declarative deployment 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
766 B
Elixir
40 lines
766 B
Elixir
defmodule SystemStatsDaemon.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :system_stats_daemon,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.18",
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps(),
|
|
releases: releases()
|
|
]
|
|
end
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
def application do
|
|
[
|
|
extra_applications: [:logger],
|
|
mod: {SystemStatsDaemon.Application, []}
|
|
]
|
|
end
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
defp deps do
|
|
[
|
|
{:tortoise, "~> 0.9.5"},
|
|
{:jason, "~> 1.4"}
|
|
]
|
|
end
|
|
|
|
defp releases do
|
|
[
|
|
system_stats_daemon: [
|
|
include_executables_for: [:unix],
|
|
applications: [runtime_tools: :permanent]
|
|
]
|
|
]
|
|
end
|
|
end
|