Add ability to include extra xorg conf from the config
This commit is contained in:
parent
6ecd5ca8ec
commit
8e64d42b7d
@ -26,4 +26,6 @@
|
||||
};
|
||||
|
||||
binExtra = [];
|
||||
|
||||
xorgConfExtra = "";
|
||||
}
|
||||
|
@ -26,11 +26,14 @@
|
||||
Section "Files"
|
||||
ModulePath "${innerEnv}/lib/xorg/modules"
|
||||
EndSection
|
||||
|
||||
${config.xorgConfExtra}
|
||||
EOF
|
||||
|
||||
for f in $(ls ${innerEnv}/share/X11/xorg.conf.d | sort); do
|
||||
cat ${innerEnv}/share/X11/xorg.conf.d/"$f" >> "$out"
|
||||
done
|
||||
|
||||
'';
|
||||
|
||||
startx = pkgs.writeShellScriptBin "startx" ''
|
||||
|
10
x/xorg.conf
10
x/xorg.conf
@ -4,3 +4,13 @@ Section "InputClass"
|
||||
Option "XkbLayout" "us"
|
||||
Option "XkbOptions" "caps:swapescape"
|
||||
EndSection
|
||||
|
||||
Section "OutputClass"
|
||||
Identifier "nvidia"
|
||||
MatchDriver "nvidia-drm"
|
||||
Driver "nvidia"
|
||||
Option "AllowEmptyInitialConfiguration"
|
||||
ModulePath "/usr/lib/nvidia/xorg"
|
||||
ModulePath "/usr/lib/xorg/modules"
|
||||
EndSection
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user