New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asus-wmi-sensors: init at 0.0.1 #75885
Conversation
@voanhduy1512 hey, I've been looking exactly for it ;) could you please share how are you enabling it in your configuration.nix to make it work? Thanks |
Hi, If you using this PR, I have these 2 lines in my { config, pkgs, ... }: {
# ...
boot.kernelModules = [ "asus_wmi_sensors" ];
boot.extraModulePackages = [ pkgs.linuxPackages.asus-wmi-sensors ];
# ...
} |
It works great for my homelab setup (tested with default and latest kernel on release-19.09 and unstable with ASUS Zenith Extreme Alpha motherboard). I have it enabled and using it for about 3 weeks already without issues. |
9a349ac
to
00b57f9
Compare
00b57f9
to
e0a72ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. nixpkgs-review
passes successfully, switched to it in my lab.
4 package marked as broken and skipped:
linuxPackages_4_4.asus-wmi-sensors linuxPackages_4_9.asus-wmi-sensors linuxPackages_hardkernel_4_14.asus-wmi-sensors linuxPackages
_hardkernel_latest.asus-wmi-sensors
12 package built:
linuxPackages-libre.asus-wmi-sensors linuxPackages.asus-wmi-sensors linuxPackages_4_14.asus-wmi-sensors linuxPackages_4_19.asus-wm
i-sensors linuxPackages_5_5.asus-wmi-sensors linuxPackages_hardened.asus-wmi-sensors linuxPackages_latest-libre.asus-wmi-sensors l
inuxPackages_latest_hardened.asus-wmi-sensors linuxPackages_latest_xen_dom0.asus-wmi-sensors linuxPackages_testing_bcachefs.asus-w
mi-sensors linuxPackages_testing_hardened.asus-wmi-sensors linuxPackages_xen_dom0.asus-wmi-sensors
makeFlags = [ | ||
"TARGET=${kernel.modDirVersion}" | ||
"KERNEL_MODULES=${kernel.dev}/lib/modules/${kernel.modDirVersion}" | ||
"MODDESTDIR=$(out)/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"MODDESTDIR=$(out)/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon" | |
"MODDESTDIR=${placeholder "out"}/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nixos-20-03-feature-freeze/5655/20 |
e0a72ca
to
761cc80
Compare
|
||
meta = with stdenv.lib; { | ||
description = "Linux HWMON (lmsensors) sensors driver for various ASUS Ryzen and Threadripper motherboards"; | ||
homepage = https://github.com/electrified/asus-wmi-sensors; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
homepage = https://github.com/electrified/asus-wmi-sensors; | |
homepage = "https://github.com/electrified/asus-wmi-sensors"; |
|
||
stdenv.mkDerivation rec { | ||
name = "asus-wmi-sensors-${version}-${kernel.version}"; | ||
version = "0.0.1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you're collecting from an unofficial revision rather than release
version = "0.0.1"; | |
version = "unstable-2019-11-07"; |
761cc80
to
a1cc279
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-tested on my system & switched overlay to use it.
Motivation for this change
Not really sure if this module should be included but i think it would be nice if nixos support asus ryzen and threadripper's motherboard monitor but default.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @