mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 22:04:07 +02:00
25 lines
484 B
Nix
25 lines
484 B
Nix
{ pkgs,... }:
|
|
{
|
|
# Install LACT Package
|
|
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";
|
|
};
|
|
};
|
|
}
|