With the services.xserver.videoDrivers
line in configuration.nix
commented-out, I am able to launch Plasma Wayland, and use glxgears to confirm that the nouveau drivers work. But after uncommenting it (as per the manual; my chipset is Pascal so it needs the nvidia
drivers), rebuilding, and rebooting, attempting to log in only drops me back to SDDM after a while. Attached is what I believe to be the relevant part of the system journal. The only Issue that seems similar is #145576, caused by an environment variable which doesn’t seem to be set on my system. This is a fresh install. I shy away from low-level stuff like this so I’d appreciate any help at all.
configuration.nix
{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
];
boot.loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
extraEntries = ''
menuentry "Manjaro" {
search --set=manjaro --fs-uuid bccab72c-b110-4016-995e-5a98bb5711d9
configfile "($manjaro)/@/boot/grub/grub.cfg"
}
menuentry "Reboot" {
reboot
}
menuentry "Halt" {
halt
}
'';
};
};
networking.hostName = "yoshi-elite";
time.timeZone = "Australia/Brisbane";
networking.useDHCP = false;
networking.interfaces.eno1.useDHCP = true;
networking.interfaces.enp0s26u1u1.useDHCP = true;
hardware.opengl.driSupport = true;
services.xserver = {
enable = true;
videoDrivers = [ "nvidia" ]; # <--- this one
displayManager = {
sddm.enable = true;
sessionPackages = [
(pkgs.plasma-workspace.overrideAttrs (old: { passthru.providedSessions = [ "plasmawayland" ]; }))
];
defaultSession = "plasmawayland";
};
desktopManager.plasma5.enable = true;
};
services.printing.enable = true;
sound.enable = true;
services.pipewire.enable = true;
users = {
mutableUsers = false;
groups = {
yoshi = { gid = 1000; };
};
users = {
root = {
initialPassword = "asdfasdf";
password = "asdfasdf";
};
yoshi = {
uid = 1000;
isNormalUser = true;
initialPassword = "asdfasdf";
password = "asdfasdf";
description = "Yoshi";
extraGroups = [ "wheel" "networkmanager" ];
};
};
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"nvidia-settings" "nvidia-x11"
];
environment.systemPackages = [
pkgs.firefox
];
services.openssh.enable = true;
systemd.services.NetworkManager-wait-online.enable = false;
systemd.services.numLockOnTTY = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = lib.mkForce (pkgs.writeShellScript "numlock-on-tty" ''
for i in 1 2 3 4 5 6; do
/run/current-system/sw/bin/setleds -D +num </dev/tty$i
done
'');
};
};
system.stateVersion = "21.11"; # don't bump when updating to new release
}
journal
Apr 03 17:58:30 yoshi-elite sddm[966]: Session started
Apr 03 17:58:30 yoshi-elite dbus-daemon[801]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.59' (uid=1000 pid=1682 comm="/nix/store/3yy3w8q8b5jzdm8qayp41wbzsaiqk253-plasma" label="kernel")
Apr 03 17:58:30 yoshi-elite systemd[1]: Starting Locale Service...
Apr 03 17:58:30 yoshi-elite sddm-helper[1644]: [PAM] Closing session
Apr 03 17:58:30 yoshi-elite sddm-helper[1644]: [PAM] Ended.
Apr 03 17:58:30 yoshi-elite sddm[966]: Auth: sddm-helper exited successfully
Apr 03 17:58:30 yoshi-elite sddm[966]: Greeter stopped.
Apr 03 17:58:30 yoshi-elite systemd[1]: session-c3.scope: Deactivated successfully.
Apr 03 17:58:30 yoshi-elite systemd[1]: session-c3.scope: Consumed 1.756s CPU time, no IP traffic.
Apr 03 17:58:30 yoshi-elite systemd-logind[840]: Session c3 logged out. Waiting for processes to exit.
Apr 03 17:58:30 yoshi-elite systemd-logind[840]: Removed session c3.
Apr 03 17:58:30 yoshi-elite dbus-daemon[801]: [system] Successfully activated service 'org.freedesktop.locale1'
Apr 03 17:58:30 yoshi-elite systemd[1]: Started Locale Service.
Apr 03 17:58:30 yoshi-elite kernel: show_signal_msg: 1 callbacks suppressed
Apr 03 17:58:30 yoshi-elite kernel: .kwin_wayland-w[1686]: segfault at 7f244d1b0c60 ip 00007f245f6a8043 sp 00007ffea2ff0ab0 error 4 in libQt5Core.so.5.15.3[7f245f476000+314000]
Apr 03 17:58:30 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:30 yoshi-elite systemd[1]: Started Process Core Dump (PID 1688/UID 0).
Apr 03 17:58:30 yoshi-elite systemd[1]: systemd-coredump@22-1688-0.service: Deactivated successfully.
Apr 03 17:58:30 yoshi-elite kernel: .kwin_wayland-w[1695]: segfault at 7f04acf18c60 ip 00007f04bf410043 sp 00007ffcb1fec540 error 4 in libQt5Core.so.5.15.3[7f04bf1de000+314000]
Apr 03 17:58:30 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:30 yoshi-elite systemd[1]: Started Process Core Dump (PID 1697/UID 0).
Apr 03 17:58:31 yoshi-elite systemd[1]: systemd-coredump@23-1697-0.service: Deactivated successfully.
Apr 03 17:58:31 yoshi-elite kernel: .kwin_wayland-w[1702]: segfault at 7f3d0333cc60 ip 00007f3d15834043 sp 00007ffe5a006e10 error 4 in libQt5Core.so.5.15.3[7f3d15602000+314000]
Apr 03 17:58:31 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:31 yoshi-elite systemd[1]: Started Process Core Dump (PID 1706/UID 0).
Apr 03 17:58:31 yoshi-elite systemd[1]: systemd-coredump@24-1706-0.service: Deactivated successfully.
Apr 03 17:58:31 yoshi-elite kernel: .kwin_wayland-w[1711]: segfault at 7f6b2b17cc60 ip 00007f6b3d674043 sp 00007ffc3e0e3bc0 error 4 in libQt5Core.so.5.15.3[7f6b3d442000+314000]
Apr 03 17:58:31 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:31 yoshi-elite systemd[1]: Started Process Core Dump (PID 1715/UID 0).
Apr 03 17:58:31 yoshi-elite systemd[1]: systemd-coredump@25-1715-0.service: Deactivated successfully.
Apr 03 17:58:31 yoshi-elite kernel: .kwin_wayland-w[1722]: segfault at 7f329e0e7c60 ip 00007f32b05df043 sp 00007fff0981ff60 error 4 in libQt5Core.so.5.15.3[7f32b03ad000+314000]
Apr 03 17:58:31 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:31 yoshi-elite systemd[1]: Started Process Core Dump (PID 1724/UID 0).
Apr 03 17:58:32 yoshi-elite systemd[1]: systemd-coredump@26-1724-0.service: Deactivated successfully.
Apr 03 17:58:32 yoshi-elite kernel: .kwin_wayland-w[1731]: segfault at 7f3c8da8bc60 ip 00007f3c9ff83043 sp 00007ffce0773860 error 4 in libQt5Core.so.5.15.3[7f3c9fd51000+314000]
Apr 03 17:58:32 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:32 yoshi-elite systemd[1]: Started Process Core Dump (PID 1733/UID 0).
Apr 03 17:58:32 yoshi-elite systemd[1]: systemd-coredump@27-1733-0.service: Deactivated successfully.
Apr 03 17:58:32 yoshi-elite kernel: .kwin_wayland-w[1738]: segfault at 7fc3120edc60 ip 00007fc3245e5043 sp 00007ffd76707e30 error 4 in libQt5Core.so.5.15.3[7fc3243b3000+314000]
Apr 03 17:58:32 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:32 yoshi-elite systemd[1]: Started Process Core Dump (PID 1742/UID 0).
Apr 03 17:58:32 yoshi-elite systemd[1]: systemd-coredump@28-1742-0.service: Deactivated successfully.
Apr 03 17:58:32 yoshi-elite kernel: .kwin_wayland-w[1749]: segfault at 7f6a9825bc60 ip 00007f6aaa753043 sp 00007ffdaf004eb0 error 4 in libQt5Core.so.5.15.3[7f6aaa521000+314000]
Apr 03 17:58:32 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:32 yoshi-elite systemd[1]: Started Process Core Dump (PID 1751/UID 0).
Apr 03 17:58:32 yoshi-elite systemd[1]: systemd-coredump@29-1751-0.service: Deactivated successfully.
Apr 03 17:58:33 yoshi-elite kernel: .kwin_wayland-w[1756]: segfault at 7ffb84c66c60 ip 00007ffb9715e043 sp 00007ffeff72d9d0 error 4 in libQt5Core.so.5.15.3[7ffb96f2c000+314000]
Apr 03 17:58:33 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:33 yoshi-elite systemd[1]: Started Process Core Dump (PID 1760/UID 0).
Apr 03 17:58:33 yoshi-elite systemd[1]: systemd-coredump@30-1760-0.service: Deactivated successfully.
Apr 03 17:58:33 yoshi-elite kernel: .kwin_wayland-w[1767]: segfault at 7f2bf734cc60 ip 00007f2c09844043 sp 00007ffd69107cb0 error 4 in libQt5Core.so.5.15.3[7f2c09612000+314000]
Apr 03 17:58:33 yoshi-elite kernel: Code: 8b 7e 08 48 85 ff 0f 84 9b 00 00 00 48 8b 47 08 48 8b 50 38 49 8b 46 38 48 39 c2 0f 85 ba 52 de ff 48 8b 07 48 89 ea 48 89 de <ff> 50 30 84 c0 75 58 4d 8b 46 30 49 8b 50 20 8b 7a 0c 8b 4a 08 89
Apr 03 17:58:33 yoshi-elite systemd[1]: Started Process Core Dump (PID 1769/UID 0).
Apr 03 17:58:33 yoshi-elite systemd[1]: systemd-coredump@31-1769-0.service: Deactivated successfully.
Apr 03 17:58:33 yoshi-elite systemd[1]: Started Process Core Dump (PID 1778/UID 0).
Apr 03 17:58:33 yoshi-elite systemd[1]: systemd-coredump@32-1778-0.service: Deactivated successfully.
Apr 03 17:58:33 yoshi-elite sddm-helper[1677]: [PAM] Closing session
Apr 03 17:58:33 yoshi-elite sddm-helper[1677]: pam_unix(sddm:session): session closed for user yoshi
Apr 03 17:58:33 yoshi-elite sddm-helper[1677]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_close_session
Apr 03 17:58:33 yoshi-elite sddm-helper[1677]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Apr 03 17:58:33 yoshi-elite sddm-helper[1677]: [PAM] Ended.
Apr 03 17:58:33 yoshi-elite sddm[966]: Auth: sddm-helper exited successfully
Apr 03 17:58:33 yoshi-elite sddm[966]: Socket server stopping...
Apr 03 17:58:33 yoshi-elite sddm[966]: Socket server stopped.
Apr 03 17:58:33 yoshi-elite sddm[966]: Display server stopping...
Apr 03 17:58:33 yoshi-elite systemd-logind[840]: Session 7 logged out. Waiting for processes to exit.