From 9333512fc4ff455a91b2a481697bd411f760bbc1 Mon Sep 17 00:00:00 2001 From: isabel Date: Thu, 16 Jul 2026 02:59:25 +0100 Subject: [PATCH] nixos/hardware/media/video: reduce server closure --- modules/nixos/hardware/media/video.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/nixos/hardware/media/video.nix b/modules/nixos/hardware/media/video.nix index 016fe270..e4868637 100644 --- a/modules/nixos/hardware/media/video.nix +++ b/modules/nixos/hardware/media/video.nix @@ -1,10 +1,18 @@ -{ self, pkgs, ... }: +{ + self, + pkgs, + config, + ... +}: let inherit (self.lib) isx86Linux; in { hardware.graphics = { enable = true; - enable32Bit = isx86Linux pkgs; + + # 32-bit GL is only ever used by 32-bit userspace (steam, wine), so a + # headless system has no use for it no matter which gpu it has + enable32Bit = config.garden.profiles.graphical.enable && isx86Linux pkgs; }; } -- 2.51.2