sneeuwvlok/modules/nixos/hardware/gpu/amd/default.nix
Chris Kruining ce2002884e
Some checks are pending
Test action / kaas (push) Waiting to run
fix updated option
2025-10-08 20:25:39 +02:00

24 lines
467 B
Nix

{ pkgs, lib, namespace, config, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.hardware.has.gpu;
in
{
options.${namespace}.hardware.has.gpu.amd = mkEnableOption "Enable AMD gpu configuration";
config = mkIf cfg.amd {
services.xserver.videoDrivers = [ "amd" ];
hardware = {
graphics = {
enable = true;
enable32Bit = true;
};
amdgpu = {
initrd.enable = true;
};
};
};
}