nix/modules/hardware/amd-gpu/default.nix
2024-11-24 20:15:38 +01:00

19 lines
387 B
Nix

{
lib,
config,
pkgs,
...
}: {
options = {
amd-gpu.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.amd-gpu.enable {
environment.systemPackages = with pkgs; [lact];
systemd.packages = with pkgs; [lact];
systemd.services.lactd.wantedBy = ["multi-user.target"];
hardware.amdgpu.initrd.enable = true;
hardware.graphics.enable = true;
};
}