nixos-config/modules/system/lact/default.nix

25 lines
484 B
Nix
Raw Normal View History

2024-08-10 20:30:24 +02:00
{ pkgs,... }:
{
2024-08-13 19:56:30 +02:00
# Install LACT Package
environment.systemPackages =
(with pkgs; [
lact
]);
# Enable Modprobe
boot.extraModprobeConfig = ''
options amdgpu ppfeaturemask=0xFFF7FFFF
'';
# Enable Systemd Service
2024-08-10 20:30:24 +02:00
systemd.services.lact = {
enable = true;
description = "AMDGPU Control Daemon";
after = ["multi-user.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
ExecStart = "${pkgs.lact}/bin/lact daemon";
};
};
}