| Commit message (Collapse) | Author | Age |
|\
| |
| | |
gnome3.mutter: fix crash on startup with nvidia drivers
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Necessary for WebDAV over TLS, etc.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When GDM launches a new session it will inherit the user's systemd
environment (but only unset variables). If `__NIXOS_SET_ENVIRONMENT_DONE` is set
in the user's systemd environment it will prevent the environment to be set
properly or updated (eg. after having done a system rebuild).
Gnome sessions exports their environment to systemd at startup. If something
is keeping the user's systemd process alive (eg. ssh) launching a new gnome
session after logging out will result in a broken PATH. Specifically the PATH
will be inherited from GDM and never reset.
We patch GDM to never inherit `__NIXOS_SET_ENVIRONMENT_DONE` so new sessions
will always reset their base environment.
fixes https://github.com/NixOS/nixpkgs/issues/48255
For more info about the environment setup:
https://github.com/NixOS/nixpkgs/pull/45784
|
|/ |
|
|
|
|
|
| |
Standard library now contains stdenv.lib.versions.majorMinor,
which does the same.
|
|
|
|
|
| |
It was used by some themes in the past, but it broke them whenever GNOME
was updated, so it should not be used anymore.
|
|\
| |
| | |
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.
|
| |
| |
| |
| | |
gsettings now reside in glib's `bin` output.
|
|\ \ |
|
| | |
| | |
| | |
| | | |
I also removed pipewire from mutter temporarily, since it is not compatible.
|
|\| | |
|
| | | |
|
| | |
| | |
| | | |
Fix build with format-security flag
|
|\| |
| | |
| | |
| | | |
Hydra: ?compare=1477053
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | |
| | |
| | |
| | | |
Meson no longer propagates it so we need to re-add it.
|
| | | |
|
|\| | |
|
| | | |
|
| | | |
|