Add ability to include extra xorg conf from the config
This commit is contained in:
parent
6ecd5ca8ec
commit
4a3f06b73c
@ -26,4 +26,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
binExtra = [];
|
binExtra = [];
|
||||||
|
|
||||||
|
xorgConfExtra = "";
|
||||||
}
|
}
|
||||||
|
@ -26,11 +26,14 @@
|
|||||||
Section "Files"
|
Section "Files"
|
||||||
ModulePath "${innerEnv}/lib/xorg/modules"
|
ModulePath "${innerEnv}/lib/xorg/modules"
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
|
${config.xorgConfExtra}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
for f in $(ls ${innerEnv}/share/X11/xorg.conf.d | sort); do
|
for f in $(ls ${innerEnv}/share/X11/xorg.conf.d | sort); do
|
||||||
cat ${innerEnv}/share/X11/xorg.conf.d/"$f" >> "$out"
|
cat ${innerEnv}/share/X11/xorg.conf.d/"$f" >> "$out"
|
||||||
done
|
done
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
startx = pkgs.writeShellScriptBin "startx" ''
|
startx = pkgs.writeShellScriptBin "startx" ''
|
||||||
|
Loading…
Reference in New Issue
Block a user