From 5075acb02ca7e47b1eb3a8e3f1e4018554df72a7 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 15 Feb 2024 00:30:15 -0500 Subject: [PATCH] remove new-lg4ff logitech wheel driver --- modules/new-lg4ff/default.nix | 14 -------------- modules/new-lg4ff/pkg.nix | 25 ------------------------- 2 files changed, 39 deletions(-) delete mode 100644 modules/new-lg4ff/default.nix delete mode 100644 modules/new-lg4ff/pkg.nix diff --git a/modules/new-lg4ff/default.nix b/modules/new-lg4ff/default.nix deleted file mode 100644 index 2700651..0000000 --- a/modules/new-lg4ff/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ config, lib, ... }: -let - cfg = config.sconfig.new-lg4ff; -in -{ - options.sconfig.new-lg4ff.enable = lib.mkEnableOption "Enable new-lg4ff"; - - config = lib.mkIf cfg.enable { - boot.kernelModules = [ "hid-logitech-new" ]; - boot.extraModulePackages = [ - (config.boot.kernelPackages.callPackage ./pkg.nix { }) - ]; - }; -} diff --git a/modules/new-lg4ff/pkg.nix b/modules/new-lg4ff/pkg.nix deleted file mode 100644 index c744f8c..0000000 --- a/modules/new-lg4ff/pkg.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ stdenv, fetchFromGitHub, kernel }: - -stdenv.mkDerivation { - name = "new-lg4ff-${kernel.version}"; - - src = fetchFromGitHub { - owner = "berarma"; - repo = "new-lg4ff"; - # Rev with G923 support - rev = "faeb74fecb0e8ce631758ac1df3f9a341a4d5eed"; - sha256 = "sha256-uXdV7KZeQGyA2u1WfC3V3pG3ZbVff3gIdTaPfCXrtm4="; - }; - - buildPhase = '' - make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build M=$(pwd) modules - ''; - - installPhase = '' - export INSTALL_MOD_PATH="$out" - make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build M=$(pwd) modules_install - ''; - - hardeningDisable = [ "pic" "format" ]; - nativeBuildInputs = kernel.moduleBuildDependencies; -}