forked from mirrors_public/oddlama_nix-config
feat: add hint about fixing minecraft crashing xorg-server
This commit is contained in:
parent
c01ab50eda
commit
0994bba279
3 changed files with 17 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{config, pkgs,lib,...}:{
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
dpi = 96;
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue