diff --git a/nixos/modules/hardware/new-lg4ff.nix b/nixos/modules/hardware/new-lg4ff.nix index 46581e47864..d1cdf0540fc 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" ];