{ pkgs, lib, config, inputs, ... }: { config = { nixpkgs.overlays = [ (self: super: let nixpkgs-mesa = builtins.fetchTarball { name = "mesa-pin"; url = "https://github.com/nixos/nixpkgs/archive/bdac777becdbb8780c35be4f552c9d4518fe0bdb.tar.gz"; sha256 = "18hi3cgagzkrxrwv6d9yjazqg5q2kiacjn3hhb94j4gs6c6kdxrk"; }; in { mesa_drivers = (import nixpkgs-mesa { }).mesa_drivers; }) ]; hardware = { opengl = { enable = true; package = pkgs.mesa_drivers; }; }; }