fix waybar hwmon

This commit is contained in:
mjallen18
2025-11-20 17:42:50 -06:00
parent 585689db43
commit 2c4cc7c6b7
4 changed files with 38 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ in
config = lib.mkIf cfg.enable {
boot = {
kernelModules = [ "nct6775" ];
kernelModules = [ "nct6775" "k10temp" ];
kernelParams = [ (if cfg.enable then "amdgpu.ppfeaturemask=0xffffffff" else null) ];
};
@@ -61,17 +61,26 @@ in
};
# nixpkg is broken so need to manually define
systemd.services.lactd = lib.mkIf cfg.lact.enable {
description = "AMDGPU Control Daemon";
path = with pkgs; [
bash
lact
];
script = ''
lact daemon
'';
wantedBy = [ "multi-user.target" ];
after = [ "multi-user.target" ];
systemd.services = {
load-k10temp = {
description = "Load k10temp manually cause it wont otherwise";
script = ''
${pkgs.kmod}/bin/modprobe k10temp
'';
wantedBy = [ "multi-user.target" ];
};
lactd = lib.mkIf cfg.lact.enable {
description = "AMDGPU Control Daemon";
path = with pkgs; [
bash
lact
];
script = ''
lact daemon
'';
wantedBy = [ "multi-user.target" ];
after = [ "multi-user.target" ];
};
};
# Configure environment