nixos-config/modules/system/lact/default.nix
2024-08-13 19:56:30 +02:00

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";
};
};
}