New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gdm on nvidia #25621
Gdm on nvidia #25621
Conversation
The default tty1 is causing problems with getty@tty1.service and some other functions of NixOS.
…it for nvidia drivers.
@deedrah, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @lethalman and @aszlig to be potential reviewers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be tested but looks good!
|
||
# Create /dev/nvidia-uvm when the nvidia-uvm module is loaded. | ||
services.udev.extraRules = | ||
'' | ||
KERNEL=="nvidia", RUN+="${pkgs.stdenv.shell} -c 'mknod -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 255'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$(awk '/nvidia-frontend/ { print $1 }' /proc/devices)
is slightly shorter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to stay consistent with the already present rule for nvidia-uvm
. And awk
is not in the path of udev service that will execute this.
Superseeded by #29697 with commits from this PR. Thanks! |
Motivation for this change
This PR should fix #24172 and possibly problems caused by #22470 together with other small tweaks for GDM.
I can only test it on system with a single NVIDIA card so feedback from different setups is welcome.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)