From 2f074d636d1156302f58e67ef35905de08bac152 Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Sun, 19 Mar 2023 00:14:03 +0100 Subject: [PATCH] onenetbook/4: remove stale iio-sensor-proxy <3.0 branch --- onenetbook/4/default.nix | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/onenetbook/4/default.nix b/onenetbook/4/default.nix index 374b69a..9ac16b5 100644 --- a/onenetbook/4/default.nix +++ b/onenetbook/4/default.nix @@ -1,9 +1,5 @@ { pkgs, config, lib, ... }: -let - iio-sensor-proxy-supports-rotation = - lib.versionAtLeast pkgs.iio-sensor-proxy.version "3.0"; -in { imports = [ ../../common/cpu/intel @@ -24,29 +20,11 @@ in ]; # OneNetbook 4 has an accelerometer, - hardware.sensor.iio.enable = lib.mkDefault iio-sensor-proxy-supports-rotation; + hardware.sensor.iio.enable = true; # said accelerometer needs rotation, rotation needs iio-sensor-proxy >= 3.0 - services.udev.extraHwdb = lib.mkIf iio-sensor-proxy-supports-rotation '' + services.udev.extraHwdb = '' acpi:BOSC0200:BOSC0200:* ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, 1; 1, 0, 0 ''; # (this at least gets normal/left-up/right-up/bottom-up right) - # Until https://github.com/NixOS/nixpkgs/pull/125989 reaches you, you can use - #nixpkgs.overlays = [ - # (self: super: { - # iio-sensor-proxy = - # if (lib.versionOlder super.iio-sensor-proxy.version "3.0") then - # (super.iio-sensor-proxy.overrideAttrs (oa: rec { - # version = "3.0"; - # src = pkgs.fetchFromGitLab { - # domain = "gitlab.freedesktop.org"; - # owner = "hadess"; - # repo = "iio-sensor-proxy"; - # rev = version; - # sha256 = "0ngbz1vkbjci3ml6p47jh6c6caipvbkm8mxrc8ayr6vc2p9l1g49"; - # }; - # })) - # else super.iio-sensor-proxy; - # }) - #]; }