From 5c65f41994aa380b28ed787cbde8d3154f78d750 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 26 Dec 2017 23:20:56 +0100 Subject: x: use nixos-hardware --- 2configs/hw/tp-x230.nix | 30 +++--------------------------- 2configs/hw/tp-x2x0.nix | 2 ++ 2 files changed, 5 insertions(+), 27 deletions(-) (limited to '2configs') diff --git a/2configs/hw/tp-x230.nix b/2configs/hw/tp-x230.nix index 14572b35c..ec4e05d1b 100644 --- a/2configs/hw/tp-x230.nix +++ b/2configs/hw/tp-x230.nix @@ -3,38 +3,14 @@ with import ; { - imports = [ ./tp-x2x0.nix ]; - boot = { - # tp-smapi is not supported bt x230 anymore - kernelModules = [ - "kvm-intel" - "thinkpad_ec" - "acpi_call" - # "thinkpad_acpi" - # "tpm-rng" - ]; - extraModulePackages = [ - config.boot.kernelPackages.acpi_call - ]; - # support backlight adjustment - kernelParams = [ "acpi_osi=Linux" "acpi_backlight=vendor" ]; - }; + imports = [ ./tp-x2x0.nix ]; # configured media keys inside awesomerc # sound.mediaKeys.enable = true; hardware.bluetooth.enable = true; - services.acpid.enable = true; - hardware.opengl.extraPackages = [ pkgs.vaapiIntel pkgs.vaapiVdpau ]; - services.xserver = { - videoDriver = "intel"; - deviceSection = '' - Option "AccelMethod" "sna" - Option "Backlight" "intel_backlight" - ''; - }; - - security.rngd.enable = true; + # possible i915 powersave options: + # options i915 enable_rc6=1 enable_fbc=1 semaphores=1 services.xserver.displayManager.sessionCommands ='' xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1 diff --git a/2configs/hw/tp-x2x0.nix b/2configs/hw/tp-x2x0.nix index 81c4bf4c8..680545c99 100644 --- a/2configs/hw/tp-x2x0.nix +++ b/2configs/hw/tp-x2x0.nix @@ -17,6 +17,8 @@ with import ; # enable synaptics so we can easily disable the touchpad # enable the touchpad with `synclient TouchpadOff=0` + + services.xserver.libinput.enable = false; services.xserver.synaptics = { enable = true; additionalOptions = ''Option "TouchpadOff" "1"''; -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/1f200000.lock: No such file or directory (2)