20 Oct 2024 |
Atemu | Getting back to driversFor : The nvidia package could expose driversFor = system: if system == "i686-linux" then self.lib32 else self | 20:49:42 |
K900 | In reply to@k900:0upti.me
hardware.graphics.extraPackages = pkgs: if pkgs.stdenv.is64bit then [ config.hardware.nvidia.package ] else [ config.hardware.nvidia.package.lib32 ] I'd rather do this at that point | 20:50:14 |
K900 | But that still means we can't assert on its stdenv | 20:50:30 |
K900 | * But that still means we can't assert on its system | 20:50:39 |
K900 | Because self.lib32 is still system == "x86_64-linux" | 20:50:49 |
Atemu | __actual_system | 20:51:02 |
Atemu | :p | 20:51:04 |
K900 | In reply to@k900:0upti.me I guess we can set passthru.is32BitTrustMeBro = true Yeah that's just this | 20:51:31 |
Atemu | Okay let's say the nvidia driver did this. How would we get extraPackages to compose though? | 20:52:44 |
K900 | We call all of them, then concat | 20:55:39 |
Atemu | Ah this would be the option that symlinks them together right? | 20:56:30 |
K900 | Well yes it would be the same thing we already do for /run/opengl-drivers | 20:57:09 |
K900 | Just with some custom merging logic | 20:57:14 |
Atemu | I don't know how easy that'd be to realise in a type though | 20:57:15 |
Atemu | K900: btw before we duplicate efforts: https://github.com/Atemu/nixpkgs/tree/nixos/hardware-drivers | 22:05:24 |
Sami Liedes | I figured out what it gets to run ck4 (Crusader Kings 4) on Steam. Need to add pkgs.nss to programs.steam.extraPackages . | 22:51:59 |
Atemu | Sami Liedes: Shoot a PR to include it in the default closure for the non-small steam FHSenv if you want | 22:52:51 |
Sami Liedes | I also started to wonder if it would be possible and productive to hack some weird ld.so for steam-run use that records what libraries it failed to find in a nicer than strace way. | 22:54:29 |
Atemu | Hm, yeah that would be nice | 22:54:50 |
Atemu | I believe I've seen someone use apparmor to get nicer path access failures | 22:55:39 |
Atemu | In reply to @atemu12:matrix.org Sami Liedes: Shoot a PR to include it in the default closure for the non-small steam FHSenv if you want Uh, huh. We don't have the big steam anymore since K900 decimated it. | 22:56:08 |
Sami Liedes | That's one way :) | 22:56:09 |
Sami Liedes | I think this is the first I heard of big and small steams. :P | 22:56:27 |
Atemu | That feels like an oversight, we should at least have the option to have a steam-fat which contains all the libraries that games have needed in the past. | 22:57:03 |
21 Oct 2024 |
Atemu | In reply to @k900:0upti.me Because self.lib32 is still system == "x86_64-linux" Cursed idea: self.drivers32 = pkgsi686Linux.runCommand "drivers32" { outputs = [ "drivers" ]; } "ln -s ${self.drivers} $drivers" | 00:23:39 |
K900 | In reply to@atemu12:matrix.org Sami Liedes: Shoot a PR to include it in the default closure for the non-small steam FHSenv if you want Denied | 05:45:22 |
K900 | Valve is going all-in on pressure-vessel next Steam update | 05:45:45 |
K900 | There will be no game-specific workarounds in the fhsenv anymore because they won't make it to pressure-vessel anyway | 05:46:08 |
K900 | In reply to@atemu12:matrix.org Cursed idea: self.drivers32 = pkgsi686Linux.runCommand "drivers32" { outputs = [ "drivers" ]; } "ln -s ${self.drivers} $drivers" Oh god | 05:46:29 |
K900 | This is disgusting but I kinda like it | 05:46:34 |