Configure glances

This commit is contained in:
Oliver Davies 2025-04-30 13:42:51 +01:00
parent d809ab9fb6
commit c350b55948
5 changed files with 93 additions and 12 deletions

View file

@ -0,0 +1,57 @@
{ config }:
{
Glances =
let
port = toString config.services.glances.port;
in
[
{
Info = {
widget = {
type = "glances";
url = "http://localhost:${port}";
metric = "info";
chart = false;
version = 4;
};
};
}
{
"CPU Temp" = {
widget = {
type = "glances";
url = "http://localhost:${port}";
metric = "sensor:Package id 0";
chart = false;
version = 4;
};
};
}
{
Processes = {
widget = {
type = "glances";
url = "http://localhost:${port}";
metric = "process";
chart = false;
version = 4;
};
};
}
{
Network = {
widget = {
type = "glances";
url = "http://localhost:${port}";
metric = "network:enp0s13f0u1";
chart = false;
version = 4;
};
};
}
];
}