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

Set up Intel/Nvidia/AMD gpus #40

Open
Mic92 opened this issue Sep 26, 2024 · 4 comments
Open

Set up Intel/Nvidia/AMD gpus #40

Mic92 opened this issue Sep 26, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Mic92
Copy link
Member

Mic92 commented Sep 26, 2024

We already load gpu drivers into the initrd, but we do not yet setup opengl/vulkan drivers.

@Mic92 Mic92 added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Sep 26, 2024
@Mic92
Copy link
Member Author

Mic92 commented Sep 26, 2024

For nvidia we can detect the gpu chip generation and than decide if want the open or closed gpu driver.

We figured out that lspci has the gpu generation for nvidia in its first few characters encoded.

@geekodour
Copy link

geekodour commented Oct 10, 2024

I am getting the following with nixos-anywhere and facter:

error:
       … while calling the 'seq' builtin

         at /nix/store/m1szqwijms610n6325mwjswslha4nd92-source/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       … while calling the 'throw' builtin

         at /nix/store/m1szqwijms610n6325mwjswslha4nd92-source/lib/modules.nix:298:18:

          297|                     ''
          298|             else throw baseMsg
             |                  ^
          299|         else null;

       error: The option `hardware.graphics' does not exist. Definition values:
       - In `/nix/store/isph9via2616d4hf2ixavza3ig9wjk2c-source/modules/nixos/graphics.nix':
           {
             _type = "if";
             condition = true;
             content = {
               enable = {
           ...

is it related?

I am trying to deploy a hetzner vm, where I don't really care about graphics here. So unsure about this usecase

Mic92 added a commit that referenced this issue Oct 10, 2024
Mic92 added a commit that referenced this issue Oct 10, 2024
Mic92 added a commit that referenced this issue Oct 10, 2024
@Mic92
Copy link
Member Author

Mic92 commented Oct 10, 2024

@geekodour This option was introduced in nixpkgs-unstable but is not yet available in 24.05.
Fix in #45
We currently don't actively test nixos 24.05 compatibility, but we might start doing this with 24.11.

Mic92 added a commit that referenced this issue Oct 12, 2024
@Mic92
Copy link
Member Author

Mic92 commented Nov 7, 2024

We have now some support for AMD GPUs. For nvidia, we need to detect the gpu generation to figure out if we can use the open driver or not. For Intel we need to detect the iGPU generation as well to load the right opencl/opengl and vaapi driver.

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

No branches or pull requests

2 participants