Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot disable nvidia-offload command #857

Open
ghostbuster91 opened this issue Feb 4, 2024 · 0 comments
Open

cannot disable nvidia-offload command #857

ghostbuster91 opened this issue Feb 4, 2024 · 0 comments

Comments

@ghostbuster91
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant