We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f40f8 commit a1d95f4Copy full SHA for a1d95f4
modules/nixos/graphics/amd.nix
@@ -1,17 +1,14 @@
1
{ lib, config, ... }:
2
let
3
+ facterLib = import ../../../lib/lib.nix lib;
4
cfg = config.facter.detected.graphics.amd;
5
in
6
{
7
options.facter.detected.graphics = {
8
amd.enable = lib.mkEnableOption "Enable the AMD Graphics module" // {
- default =
9
- let
10
- graphicsDrivers = builtins.map (graphics_card: graphics_card.driver) (
11
- config.facter.report.hardware.graphics_card or [ ]
12
- );
13
- in
14
- builtins.elem "amdgpu" graphicsDrivers;
+ default = builtins.elem "amdgpu" (
+ facterLib.collectDrivers (config.facter.report.hardware.graphics_card or [ ])
+ );
15
};
16
17
config = lib.mkIf cfg.enable {
0 commit comments