From ec9204d73216656c97aac904f7db2d1bede2c090 Mon Sep 17 00:00:00 2001 From: lom Date: Wed, 1 Jun 2022 15:07:24 -0600 Subject: [PATCH] nixos/new-lg4ff: respect enable option --- nixos/modules/hardware/new-lg4ff.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/hardware/new-lg4ff.nix b/nixos/modules/hardware/new-lg4ff.nix index 46581e478640..d1cdf0540fc6 100644 --- a/nixos/modules/hardware/new-lg4ff.nix +++ b/nixos/modules/hardware/new-lg4ff.nix @@ -17,7 +17,7 @@ in { }; }; - config = { + config = lib.mkIf cfg.enable { boot = { extraModulePackages = [ pkgs.new-lg4ff ]; kernelModules = [ "hid-logitech-new" ];