Merge pull request #9918 from khumba/synaptics-conf
xf86-input-synaptics: make use of 50-synaptics.conf
This commit is contained in:
@@ -18,6 +18,8 @@ let cfg = config.services.xserver.synaptics;
|
|||||||
Option "TapButton2" "0"
|
Option "TapButton2" "0"
|
||||||
Option "TapButton3" "0"
|
Option "TapButton3" "0"
|
||||||
'';
|
'';
|
||||||
|
pkg = pkgs.xorg.xf86inputsynaptics;
|
||||||
|
etcFile = "X11/xorg.conf.d/50-synaptics.conf";
|
||||||
in {
|
in {
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
@@ -146,9 +148,12 @@ in {
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
services.xserver.modules = [ pkgs.xorg.xf86inputsynaptics ];
|
services.xserver.modules = [ pkg ];
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.xorg.xf86inputsynaptics ];
|
environment.etc."${etcFile}".source =
|
||||||
|
"${pkg}/share/X11/xorg.conf.d/50-synaptics.conf";
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkg ];
|
||||||
|
|
||||||
services.xserver.config =
|
services.xserver.config =
|
||||||
''
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user