fix waybar hwmon
This commit is contained in:
@@ -336,7 +336,8 @@ in
|
||||
};
|
||||
|
||||
temperature = {
|
||||
hwmon-path = cfg.temperature.cpu.hwmonPath;
|
||||
hwmon-path-abs = cfg.temperature.cpu.hwmonPath;
|
||||
input-filename = cfg.temperature.cpu.hwmonFile;
|
||||
critical-threshold = 110;
|
||||
format-critical = "{temperatureC}°C ";
|
||||
format = "{temperatureC}°C {icon}";
|
||||
@@ -546,7 +547,8 @@ in
|
||||
|
||||
(mkIf cfg.temperature.gpu.enable {
|
||||
"temperature#gpu" = {
|
||||
hwmon-path = cfg.temperature.gpu.hwmonPath;
|
||||
hwmon-path-abs = cfg.temperature.gpu.hwmonPath;
|
||||
input-filename = cfg.temperature.gpu.hwmonFile;
|
||||
critical-threshold = 110;
|
||||
format-critical = "{temperatureC}°C ";
|
||||
format = "{temperatureC}°C {icon}";
|
||||
|
||||
@@ -127,9 +127,14 @@ in
|
||||
};
|
||||
hwmonPath = mkOption {
|
||||
type = str;
|
||||
default = "/sys/class/hwmon/hwmon4/temp1_input";
|
||||
default = "/sys/devices/pci0000:00/0000:00:18.3/hwmon";
|
||||
description = "CPU temperature hwmon path.";
|
||||
};
|
||||
hwmonFile = mkOption {
|
||||
type = str;
|
||||
default = "temp1_input";
|
||||
description = "CPU temperature hwmon file.";
|
||||
};
|
||||
};
|
||||
};
|
||||
default = { };
|
||||
@@ -145,9 +150,14 @@ in
|
||||
};
|
||||
hwmonPath = mkOption {
|
||||
type = str;
|
||||
default = "/sys/class/hwmon/hwmon0/temp1_input";
|
||||
default = "/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.0/hwmon";
|
||||
description = "GPU temperature hwmon path.";
|
||||
};
|
||||
hwmonFile = mkOption {
|
||||
type = str;
|
||||
default = "temp1_input";
|
||||
description = "GPU temperature hwmon file.";
|
||||
};
|
||||
};
|
||||
};
|
||||
default = { };
|
||||
|
||||
Reference in New Issue
Block a user