Confusion about the "Configuring Optimus PRIME: Bus ID Values (Mandatory)" section of the nixos wiki found here: https://nixos.wiki/wiki/Nvidia#Configuring_Optimus_PRIME:_Bus_ID_Values_.28Mandatory.29 particularly in regards to Bus ID hexadecimal values

sudo lshw -c display runs fine and outputs the following:

rudra  ~  ♥ 11:46  sudo lshw -c display
doas (rudra@snowfire) password: 
  *-display                 
       description: i915drmfb
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom fb
       configuration: depth=32 driver=nvidia latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
       resources: iomemory:600-5ff iomemory:610-60f irq:170 memory:81000000-81ffffff memory:6000000000-60ffffffff memory:6100000000-6101ffffff ioport:4000(size=128) memory:82000000-8207ffff
  *-display
       product: i915drmfb
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
       resources: iomemory:610-60f iomemory:400-3ff irq:167 memory:6102000000-6102ffffff memory:4000000000-400fffffff ioport:5000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff

But the wiki wants me to convert bus info: pci@0000:01:00.0 and bus info: pci@0000:00:02.0 to hexadecimal values, but whenever I put 0000:01:00.0 or 0000:00:02.0 into an online hexadecimal to decimal converter such as Hex to Decimal Converter it says Illegal input. Hex number has digits range of 0..F. so I don’t know how I can proceed. If you know, please help me.

Sorry if this is a dumb question, I just don’t know much about hexadecimal

What I have for my optimus system is this:

  hardware = {
    nvidia = {
      prime = {
        intelBusId = lib.mkDefault "PCI:0:2:0";
        nvidiaBusId = lib.mkDefault "PCI:1:0:0";
      };
    };
  };

(PS nixos.wiki is dead, use wiki.nixos.org.)

Run this command to get the correct values in the correct format:

nix --experimental-features "flakes nix-command" run github:eclairevoyant/pcids

More explanation here:

Oh so I guess before dealing with optimus, I should first check for any differences and then overwrite anything i got from nixos.wiki with what is at wiki.nixos.org, maybe that will make x11 work again because since I did the initial setup from nixos.wiki x11 stopped working only wayland works, and I NEED x11 because symless Synergy only supports x11.

In wiki.nixos.org it says

Warning: If you use a laptop with both dedicated and integrated GPUs, remember to configure PRIME in order to make your dedicated NVIDIA GPU work properly with your integrated GPU. Your configuration might not work if you skip this step.

So now I am guessing x11 doesn’t work because I haven’t done this yet.

would you recommend setting hardware.nvidia.open to true or false, If using x11?

Thanks, this allowed me to finish setting up PRIME, which also fixed my x11 issue. I am eternally grateful to you!