Add ability to include extra xorg conf from the config

This commit is contained in:
mediocregopher 2023-12-17 17:15:50 +01:00
parent 6ecd5ca8ec
commit 4a3f06b73c
2 changed files with 5 additions and 0 deletions

View File

@ -26,4 +26,6 @@
};
binExtra = [];
xorgConfExtra = "";
}

View File

@ -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" ''