diff --git a/nix/nixos-modules/graphics.nix b/nix/nixos-modules/graphics.nix index ef0e9e3..59916df 100644 --- a/nix/nixos-modules/graphics.nix +++ b/nix/nixos-modules/graphics.nix @@ -34,15 +34,13 @@ in ]; } - ( - # TODO replace with drivers - lib.mkIf cfg.amd.enable { - assertions = lib.singleton { - assertion = !cfg.amd.enable; - message = "graphics module missing support for AMD drivers"; - }; - } - ) + # source: https://wiki.nixos.org/wiki/AMD_GPU + (lib.mkIf cfg.amd.enable { + hardware.opengl = { + enable = true; + # more seems not required + }; + }) (lib.mkIf cfg.intel.enable { hardware.opengl = {