hwmon path as option
This commit is contained in:
parent
57b9da65cb
commit
5650a9c4b7
7 changed files with 16 additions and 3 deletions
|
@ -10,4 +10,6 @@
|
|||
withVM = false;
|
||||
withContainers = true;
|
||||
withGames = false;
|
||||
|
||||
hwmonPath = "/sys/class/hwmon/hwmon1/temp1_input";
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }: {
|
||||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
./options.nix
|
||||
];
|
||||
|
|
|
@ -10,4 +10,6 @@
|
|||
withVM = false;
|
||||
withContainers = false;
|
||||
withGames = false;
|
||||
|
||||
hwmonPath = "/sys/class/hwmon/hwmon4/temp1_input";
|
||||
}
|
||||
|
|
|
@ -10,4 +10,6 @@
|
|||
withVM = false;
|
||||
withContainers = false;
|
||||
withGames = false;
|
||||
|
||||
hwmonPath = "/sys/class/hwmon/hwmon1/temp1_input";
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ in lib.mkIf (osConfig.withNiri) {
|
|||
format = "{usage}%";
|
||||
};
|
||||
"temperature" = {
|
||||
hwmon-path = "/sys/class/hwmon/hwmon4/temp1_input";
|
||||
hwmon-path = osConfig.hwmonPath;
|
||||
format = "{temperatureC}°C ";
|
||||
interval = 10;
|
||||
tooltip = false;
|
||||
|
|
|
@ -11,5 +11,10 @@
|
|||
withVM = mkEnableOption "Enable VM related configuration";
|
||||
withContainers = mkEnableOption "Enable container support";
|
||||
withGames = mkEnableOption "Enable games";
|
||||
|
||||
hwmonPath = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -35,7 +35,9 @@
|
|||
];
|
||||
};
|
||||
|
||||
# Lenovo Thinkpad
|
||||
# Lenovo Thinkpad T540p
|
||||
# Intel i7-4710MQ
|
||||
# 8GB RAM
|
||||
inkvine = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue