nix-config/hosts/nixedo/services/homepage/glances.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

2025-04-30 13:42:51 +01:00
{ 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}";
2025-05-01 22:06:20 +01:00
metric = "network:enp0s20f0u1";
2025-04-30 13:42:51 +01:00
chart = false;
version = 4;
};
};
}
];
}