fix waybar hwmon
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user