mirror of
https://github.com/Username404-59/Dotfiles-NixOS.git
synced 2026-07-03 21:08:08 +02:00
23 lines
829 B
Nix
23 lines
829 B
Nix
{ lib, pkgs, functions, isLaptop, ... }:
|
|
|
|
let
|
|
selected_vkDrivers = [ "amd" "nouveau" /* Needed by steam => */ "microsoft-experimental" ] ++ lib.optional (!isLaptop) "intel";
|
|
selected_glDrivers = [ "radeonsi" "zink" ] ++ lib.optional (!isLaptop) "i915";
|
|
in
|
|
{
|
|
hardware.graphics = {
|
|
# Mesa-git because why not
|
|
package = (functions.mkUnstable pkgs.mesa).override {
|
|
vulkanDrivers = selected_vkDrivers;
|
|
galliumDrivers = selected_glDrivers;
|
|
};
|
|
package32 = (functions.mkUnstable pkgs.pkgsi686Linux.mesa).override {
|
|
vulkanDrivers = selected_vkDrivers;
|
|
galliumDrivers = selected_glDrivers;
|
|
};
|
|
extraPackages = with pkgs; [
|
|
(functions.mkUnstable low-latency-layer) # Better alternative (+ vendor-agnostic) to mesa's amd anti-lag 2
|
|
(functions.mkUnstable lsfg-vk)
|
|
];
|
|
};
|
|
} |