Instead of doing `inherit (lib) <something>``, all inherits now use `inherit (lib.<subsystem>) <something>`, which is much nicer.
19 lines
342 B
Nix
19 lines
342 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkDefault;
|
|
in {
|
|
hardware = {
|
|
cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
|
|
graphics.extraPackages = builtins.attrValues {
|
|
inherit
|
|
(pkgs)
|
|
intel-vaapi-driver
|
|
intel-media-driver
|
|
;
|
|
};
|
|
};
|
|
}
|