News for hackers. Stuff that matters.
Re:What's your go to Nix/NixOS pitch? by amelius on Saturday August 12, 2023 @04:03PM (#37103737)
How do you configure and install low level hardware drivers? Aren't these different on both systems? And wouldn't proprietary drivers rely on hardcoded versions of libc, for example, causing a dependency hell?
Re:What's your go to Nix/NixOS pitch? by pxc on Saturday August 12, 2023 @04:36PM (#37104029)
* * *
Re:What's your go to Nix/NixOS pitch? by charcircuit on Saturday August 12, 2023 @04:12PM (#37103813)
This is handled by having multiple config files. System specfic stuff goes into a dedicated file which wouldn't be shared.
Re:What's your go to Nix/NixOS pitch? by amelius on Saturday August 12, 2023 @04:13PM (#37103825)
And proprietary drivers?
Re:What's your go to Nix/NixOS pitch? by cfcosta on Saturday August 12, 2023 @04:33PM (#37104001)
I only use one, which is nvidia. It's already a nixos option, so I just set them on my configuration file.

Three options to be exact:

hardware.nvidia.modesetting.enable = true; services.xserver.videoDrivers = [ "nvidia" ]; hardware.opengl = { enable = true; driSupport = true; driSupport32Bit = true; };

First enables nvidia modesetting, second enables the driver, and the third enables opengl, with a special flag to also enable it for 32bit stuff (like old games on steam).