From 8a50023423431cc619ea52f484afa00edb43c082 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 20 Jan 2024 08:14:31 +0000 Subject: [PATCH] Move some driver configs to Vanguard specifically --- hosts/Vanguard/configuration.nix | 5 ++++- system/desktop.nix | 1 - system/steam.nix | 8 ++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/hosts/Vanguard/configuration.nix b/hosts/Vanguard/configuration.nix index 6619c7ca..04437a75 100644 --- a/hosts/Vanguard/configuration.nix +++ b/hosts/Vanguard/configuration.nix @@ -1,6 +1,9 @@ -{ config, ... }: { +{ config, pkgs, ... }: { boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; boot.extraModprobeConfig = '' options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1 ''; + hardware.opengl.driSupport32Bit = true; + hardware.opengl.extraPackages = with pkgs; [ amdvlk rocmPackages.clr.icd ]; + hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ]; } diff --git a/system/desktop.nix b/system/desktop.nix index f0f47284..37fc8653 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -2,7 +2,6 @@ imports = [ ./default.nix ]; environment.systemPackages = with pkgs; [ dex - mesa libnotify glib gsettings-desktop-schemas diff --git a/system/steam.nix b/system/steam.nix index 2e76248d..62499a70 100644 --- a/system/steam.nix +++ b/system/steam.nix @@ -1,9 +1,5 @@ -{ pkgs, ... }: { - environment.systemPackages = with pkgs; [ mesa ]; - hardware = { - opengl.driSupport32Bit = true; - steam-hardware.enable = true; - }; +{ ... }: { + hardware.steam-hardware.enable = true; programs = { xwayland.enable = true; gamescope = {