feat: add hint about fixing minecraft crashing xorg-server

This commit is contained in:
oddlama 2023-09-16 01:02:57 +02:00
parent c01ab50eda
commit 0994bba279
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 17 additions and 2 deletions

View file

@ -17,7 +17,7 @@
../../modules/optional/dev
../../modules/optional/graphical
../../modules/optional/laptop.nix
#../../modules/optional/sound.nix
../../modules/optional/sound.nix
../../modules/optional/zfs.nix
../../users/myuser

View file

@ -1,4 +1,9 @@
{config, pkgs,lib,...}:{
{
config,
pkgs,
lib,
...
}: {
services.xserver = {
enable = true;
dpi = 96;

View file

@ -1,4 +1,14 @@
{pkgs, ...}: {
# XXX: Do NOT enable "Use discrete GPU" when running on nvidia by default.
# Otherwise the xorg server will crash big time (no logs). After some gdb
# debugging the culprit seems to be the x11 nvidia driver (nvidia_drv.so),
# which doesn't like it when you set one of the following env variables:
# (not entirely sure which one)
# DRI_PRIME=1
# __NV_PRIME_RENDER_OFFLOAD=1
# __VK_LAYER_NV_optimus=NVIDIA_only
# __GLX_VENDOR_LIBRARY_NAME=nvidia
# See also: https://github.com/PrismLauncher/PrismLauncher/issues/1628, https://bbs.archlinux.org/viewtopic.php?id=272161
home.packages = with pkgs; [
prismlauncher
];