Nvtop for 2 GPU Families

As I understand, I can install nvtop for the specific gpu - for example nvtopPackages.intel, or for all families (nvtop/default.nix) by installing nvtopPackages.full

Is it possible to install nvtop for 2 specific families? (installing nvtopPackages.intel and nvtopPackages.amd at the same time is not possible because of conflict…)

I’d just use nvtopPackages.full. But if you really want just support for those two, you’d have to dig into the nvtop expression to see what flags are set.

Looking at nixpkgs/pkgs/tools/system/nvtop/default.nix at 62eb60588fe550b8b8f6ebe4b02d7388a5c16681 · NixOS/nixpkgs · GitHub and nixpkgs/pkgs/tools/system/nvtop/build-nvtop.nix at 62eb60588fe550b8b8f6ebe4b02d7388a5c16681 · NixOS/nixpkgs · GitHub it seems something like (pkgs.nvtopPackages.amd.override { intel = true; }) would work for this specific case.

error: A definition for option `home.packages."[definition 8-entry 1]"' is not of type `package'. Definition values:
<function, args: {addDriverRunpath, amd?, apple?, ascend?, cmake, cudatoolkit, fetchFromGitHub, gtest, intel?, lib, libdrm, msm?, ncurses, nvidia?, panfrost?, panthor?, stdenv, testers, udev}>

I assume you missed putting parentheses.

Right, missing () ;]
Now it works, and that is exactly what I need! Thank You very much!