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" ];