initial setup
This commit is contained in:
24
root/gaming/desktop/lact/default.nix
Normal file
24
root/gaming/desktop/lact/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
# Use LACT for GPU overclocking
|
||||
{ pkgs,... }:
|
||||
{
|
||||
environment.systemPackages =
|
||||
(with pkgs; [
|
||||
lact
|
||||
]);
|
||||
|
||||
# Enable Modprobe
|
||||
boot.extraModprobeConfig = ''
|
||||
options amdgpu ppfeaturemask=0xFFF7FFFF
|
||||
'';
|
||||
|
||||
# Enable Systemd Service
|
||||
systemd.services.lact = {
|
||||
enable = true;
|
||||
description = "AMDGPU Control Daemon";
|
||||
after = ["multi-user.target"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.lact}/bin/lact daemon";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user