nixos-hardware icon indicating copy to clipboard operation
nixos-hardware copied to clipboard

cannot disable nvidia-offload command

Open ghostbuster91 opened this issue 6 months ago • 0 comments

Hi,

I noticed that no matter what I set in my local nix configuration nvidia-offload command is always available. I am not sure if the issue is limited only to availability of nvidia-offload command or is it more general problem like prime.sync vs prime.offload.

Below is my local configuration for nvidia:

  hardware.nvidia = {
    powerManagement = {
      enable = true;
      finegrained = false;
    };
    nvidiaPersistenced = false;
    # Reverse sync is not compatible with the open source kernel module
    open = false;
    nvidiaSettings = true;

    prime = {
      reverseSync.enable = false;
      offload = {
        enable = false;
        enableOffloadCmd = false;
      };
      sync.enable = true;

      #enable if using an external GPU
      allowExternalGpu = true;
    };

besides that I am pulling in https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/nvidia/prime.nix through https://github.com/NixOS/nixos-hardware/blob/master/focus/m2/gen1/default.nix

I can only make the nvidia-offload command to disappear if I stop pulling in the prime.nix module.

ghostbuster91 avatar Feb 04 '24 16:02 ghostbuster91