| Commit message (Collapse) | Author | Age |
|\
| |
| | |
nixos/opengl: Don't set XDG_DATA_DIRS.
|
| |
| |
| |
| |
| |
| | |
This was added in #19936 so that vulkan-loader finds the ICD config files. It is
not needed any more after #62869 where it was ensured that the loader looks in
/run/opengl-driver(-32)/share.
|
|\ \
| | |
| | | |
nixos: Don't set LD_LIBRARY_PATH for graphics drivers that don't need it.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A new internal option `hardware.opengl.setLdLibraryPath` is added which controls if `LD_LIBRARY_PATH` should be set to `/run/opengl-driver(-32)/lib`. It is false by default and is meant to be set to true by any driver which requires it. If this option is false, then `opengl.nix` and `xserver.nix` will not set `LD_LIBRARY_PATH`.
Currently Mesa and NVidia drivers don't set `setLdLibraryPath` because they work with libglvnd and do not override libraries, while `amdgpu-pro`, `ati` and `parallels-guest` set it to true (the former two really need it, the last one doesn't build so is presumed to).
Additionally, the `libPath` attribute within entries of `services.xserver.drivers` is removed. This made `xserver.nix` add the driver path directly to the `LD_LIBRARY_PATH` for the display manager (including X server). Not only is it redundant when the driver is added to `hardware.opengl.package` (assuming that `hardware.opengl.enable` is true), in fact all current drivers except `ati` set it incorrectly to the package path instead of package/lib.
This removal of `LD_LIBRARY_PATH` could break certain packages using CUDA, but only those that themselves load `libcuda` or other NVidia driver libraries using `dlopen` (not if they just use `cudatoolkit`). A few have already been fixed but it is practically impossible to test all because most packages using CUDA are libraries/frameworks without a simple way to test.
Fixes #11434 if only Mesa or NVidia graphics drivers are used.
|
| |/
|/| |
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
* treewide: remove unused variables
* making ofborg happy
|
|/
|
|
| |
Just use mesa for these to be more clear. Move these to aliases.nix
|
| |
|
|
|
|
| |
Without this option - NVIDIA refuses to use an external GPU.
|
|\
| |
| | |
nixos: better support for logitech devices and update relevant packages
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
acpilight: init at 1.1
|
| |
| |
| |
| | |
Use pname instead of manual adding version to package name
|
|\ \
| | |
| | | |
nixos: add preferLocalBuild=true; on derivations for config files and closureInfo
|
| |/ |
|
|/ |
|
|\
| |
| | |
linux: flag to indicate 32bit emulation support
|
| |
| |
| |
| | |
See https://github.com/NixOS/nixpkgs/issues/51097
|
|/ |
|
|\
| |
| | |
nvidia: expose nvidia_x11_legacy390
|
| | |
|
|\ \
| | |
| | | |
Introduce hardware/bladeRF module
|
| | |
| | |
| | |
| | |
| | | |
This allows to easily enable bladerf-related udev rules with nixos
configuration.
|
| | | |
|
| | |
| | |
| | |
| | | |
/cc ac19d5e34 #51836.
|
| |/
|/| |
|
| | |
|
| |
| |
| |
| | |
fixes #34064
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This was getting evaluated eagerly causing assertion failures in
aarch64 systems. We can replace usages of pkgs_i686 with
pkgs.pkgsi686Linux.
|
| | |
| | |
| | |
| | |
| | | |
This avoids leaving the parent shell process (the one executing the
unit script) lying around.
|
| | |
| | |
| | |
| | | |
The upstream package has officially changed its name to ckb-next.
|
| | |
| | |
| | |
| | |
| | | |
This changes the description and restart mode to the values present
in lib/systemd/system/ckb.service within the ckb package.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In this update:
* binaries `ckb` and `ckb-daemon` are renamed to `ckb-next` and `ckb-next-daemon`
* build system changed from qmake to cmake
* the directory searched for animation plugins no longer needs to be patched, as a result of the build system change
* modprobe patch has been bumped, since the source repository layout has changed
* the cmake scripts are quite FHS-centric and require patching to fix install locations
|
| | |
|
|\ \
| | |
| | | |
nixos/xserver: Implement configuration of NVIDIA Optimus via PRIME
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds configuration options which automate the configuration of NVIDIA Optimus using PRIME. This allows using the NVIDIA proprietary driver on Optimus laptops, in order to render using the NVIDIA GPU while outputting to displays connected only to the integrated Intel GPU. It also adds an option for enabling kernel modesetting for the NVIDIA driver (via a kernel command line flag); this is particularly useful together with Optimus/PRIME because it fixes tearing on PRIME-connected screens.
The user still needs to enable the Optimus/PRIME feature and specify the bus IDs of the Intel and NVIDIA GPUs, but this is still much easier for users and more reliable. The implementation handles both the X configuration file as well as getting display managers to run certain necessary `xrandr` commands just after X has started.
Configuration of commands run after X startup is done using a new configuration option `services.xserver.displayManager.setupCommands`. Support for this option is implemented for LightDM, GDM and SDDM; all of these have been tested with this feature including logging into a Plasma session.
Note: support of `setupCommands` for GDM is implemented by making GDM run the session executable via a wrapper; the wrapper will run the `setupCommands` before execing. This seemed like the simplest and most reliable approach, and solves running these commands both for GDM's X server and user X servers (GDM starts separate X servers for itself and user sessions). An alternative approach would be with autostart files but that seems harder to set up and less reliable.
Note that some simple features for X configuration file generation (in `xserver.nix`) are added which are used in the implementation:
- `services.xserver.extraConfig`: Allows adding arbitrary new sections. This is used to add the Device section for the Intel GPU.
- `deviceSection` and `screenSection` within `services.xserver.drivers`. This allows the nvidia configuration module to add additional contents into the `Device` and `Screen` sections of the "nvidia" driver, and not into such sections for other drivers that may be enabled.
|
|\ \ \
| | | |
| | | | |
Replace several activation script snippets with declarative configuration
|
| | |/
| |/|
| | |
| | |
| | | |
Anything that uses OpenGL starts after sysinit.target, so
systemd-tmpfiles runs before anything that needs these symlinks.
|
|/ / |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
| |
* brightnessctl: init at 0.3.2
* Revised PR
|
| |
|
|\ |
|