nix/modules/hardware/amd-gpu/default.nix

19 lines
387 B
Nix
Raw Normal View History

2024-10-13 19:09:48 +02:00
{
lib,
config,
pkgs,
...
}: {
options = {
2024-11-24 20:15:38 +01:00
amd-gpu.enable = lib.mkEnableOption "";
2024-10-13 19:09:48 +02:00
};
2024-11-24 20:15:38 +01:00
config = lib.mkIf config.amd-gpu.enable {
2024-10-13 19:09:48 +02:00
environment.systemPackages = with pkgs; [lact];
systemd.packages = with pkgs; [lact];
systemd.services.lactd.wantedBy = ["multi-user.target"];
2024-11-18 17:52:21 +01:00
hardware.amdgpu.initrd.enable = true;
2024-11-23 15:30:03 +01:00
hardware.graphics.enable = true;
2024-10-13 19:09:48 +02:00
};
}