!hzgkCxLtCOTmFXGauj:nixos.org

NixOS Gaming

199 Members
Gaming things, my hands are typing words.79 Servers

Load older messages


SenderMessageTime
20 Oct 2024
@atemu12:matrix.orgAtemu And I don't think we can change the system attr on a per-output basis 20:29:06
@k900:0upti.meK900There's a kernel module involved that's definitely native bitness only20:29:08
@k900:0upti.meK900We can't20:29:12
@k900:0upti.meK900Well in theory we can20:29:20
@k900:0upti.meK900With cursed shit20:29:25
@k900:0upti.meK900But I don't want to do cursed shit to avoid other cursed shit20:29:33
@k900:0upti.meK900And I definitely don't want to touch Nvidia stuff with no hardware to test it on20:30:58
@atemu12:matrix.orgAtemuI think what we want is either a special attr in the 64bit drv that houses the 32bit output or a "cross-compiled" package from 64 to 32bit in pkgsi686Linux20:31:03
@k900:0upti.meK900And no desire to acquire further cursed knowledge20:31:13
@k900:0upti.meK900
In reply to@atemu12:matrix.org
I think what we want is either a special attr in the 64bit drv that houses the 32bit output or a "cross-compiled" package from 64 to 32bit in pkgsi686Linux
The special attr is effectively what's happening since it's an output
20:31:26
@k900:0upti.meK900But that means we have to special case it somehow20:31:34
@k900:0upti.meK900 In hardware.graphics 20:31:40
@k900:0upti.meK900And I don't want to20:31:42
@k900:0upti.meK900I think the actually correct way is to do what Arch does20:32:17
@k900:0upti.meK900And just have separate packages20:32:27
@k900:0upti.meK900For the kernel bits and the userspace bits20:32:33
@atemu12:matrix.orgAtemuIsn't that what we have too?20:32:55
@atemu12:matrix.orgAtemuWe have kernelPackages.nvidia and the nvidia packgae20:33:06
@k900:0upti.meK900It's the same package with multiple outputs20:33:07
@k900:0upti.meK900And I just realized it's not going to work anyway20:33:13
@k900:0upti.meK900Because the kernel module needs to exactly-match the userspace20:33:21
@k900:0upti.meK900 So we're back to pulling config.hardware.nvidia.package 20:33:32
@k900:0upti.meK900And that's obviously not arch specific20:33:39
@atemu12:matrix.orgAtemuI think we won't get around special-casing proprietary drivers that have a 32bit attr20:34:06
@atemu12:matrix.orgAtemuBest we can do is standardise this attr20:34:22
@k900:0upti.meK900No20:34:31
@k900:0upti.meK900I just had the horriblest ideaest20:34:37
@k900:0upti.meK900 hardware.graphics.extraPackages = pkgs: if pkgs.stdenv.is64bit then [ config.hardware.nvidia.package ] else [ config.hardware.nvidia.package.lib32 ] 20:35:04
@k900:0upti.meK900That doesn't solve the "how do we know if this package is 32-bit" issue though20:36:14
@atemu12:matrix.orgAtemu Oh neat idea we could make drivers have a drivers output/attr (that was in my original design anyways) and then make the nvidia package expose that attr in this way 20:36:25

Show newer messages


Back to Room ListRoom Version: 10