Nvidia drivers causing no desktop enviroment

Hello, I am having an issue where when I install the drivers for my Nvidia GTX 1050 Ti, after I reboot it does not go to a desktop environment, just the CLI of tty1. I have seem similar issues, but none of them have resolved my issue. My DE is Plasma 5. Here is my config file(Minus my User definition):

# Edit this configuration file to define what should be installed on
# your system.  Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running β€˜nixos-help’).

{ config, pkgs, ... }:

{
  imports =
    [ # Include the results of the hardware scan.
      ./hardware-configuration.nix
    ];
  hardware.graphics = {
    enable = true;
    enable32Bit = true;
  };
  services.xserver.videoDrivers = ["nvidia"];
  hardware.nvidia.open = true;
  hardware.nvidia.modesetting.enable = true;
 # Bootloader.
  boot.loader.grub.enable = true;
  boot.loader.grub.device = "/dev/sda";
  boot.loader.grub.useOSProber = true;

  networking.hostName = "nixos"; # Define your hostname.
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.

  # Configure network proxy if necessary
  # networking.proxy.default = "http://user:password@proxy:port/";
  # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";

  # Enable networking
  networking.networkmanager.enable = true;

  # Set your time zone.
  time.timeZone = "America/Detroit";

  # Select internationalisation properties.
  i18n.defaultLocale = "en_US.UTF-8";

  i18n.extraLocaleSettings = {
    LC_ADDRESS = "en_US.UTF-8";
    LC_IDENTIFICATION = "en_US.UTF-8";
    LC_MEASUREMENT = "en_US.UTF-8";
    LC_MONETARY = "en_US.UTF-8";
    LC_NAME = "en_US.UTF-8";
    LC_NUMERIC = "en_US.UTF-8";
    LC_PAPER = "en_US.UTF-8";
    LC_TELEPHONE = "en_US.UTF-8";
    LC_TIME = "en_US.UTF-8";
  };

  # Enable the X11 windowing system.
  services.xserver.enable = true;

  # Enable the KDE Plasma Desktop Environment.
  services.displayManager.sddm.enable = true;
  services.xserver.desktopManager.plasma5.enable = true;

  # Configure keymap in X11
  services.xserver.xkb = {
    layout = "us";
    variant = "";
  };

  # Enable CUPS to print documents.
  services.printing.enable = true;

  # Enable sound with pipewire.
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
    # If you want to use JACK applications, uncomment this
    #jack.enable = true;

    # use the example session manager (no others are packaged yet so this is enabled by default,
    # no need to redefine it in your config for now)
    #media-session.enable = true;
  };

  # Enable touchpad support (enabled default in most desktopManager).
  # services.xserver.libinput.enable = true;


  # Install firefox.
  programs.firefox.enable = true;
  programs.steam.enable = true;
  # Allow unfree packages
  nixpkgs.config.allowUnfree = true;

  # List packages installed in system profile. To search, run:
  # $ nix search wget
  environment.systemPackages = with pkgs; [
  #  vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
  #  wget
  python3
  wine
  libreoffice-qt
  hunspell
  hunspellDicts.en_US
  nemo
  godot_4
  gimp
  blender
  vscodium
  thunderbird
  neofetch
  cowsay
  lolcat
  ];

  # Some programs need SUID wrappers, can be configured further or are
  # started in user sessions.
  # programs.mtr.enable = true;
  # programs.gnupg.agent = {
  #   enable = true;
  #   enableSSHSupport = true;
  # };

  # List services that you want to enable:

  # Enable the OpenSSH daemon.
  # services.openssh.enable = true;

  # Open ports in the firewall.
  # networking.firewall.allowedTCPPorts = [ ... ];
  # networking.firewall.allowedUDPPorts = [ ... ];
  # Or disable the firewall altogether.
  # networking.firewall.enable = false;

  # This value determines the NixOS release from which the default
  # settings for stateful data, like file locations and database versions
  # on your system were taken. Itβ€˜s perfectly fine and recommended to leave
  # this value at the release version of the first install of this system.
  # Before changing this value read the documentation for this option
  # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  system.stateVersion = "24.11"; # Did you read the comment?

}

What’s info shows journalctl -xn 30.

What info does lsmod provide?
Could you share your system info? nixOS 24.11, unstable…
Do you have an iGPU in your processor? Intel/AMD

1 Like

I run 24.11 stable. I do have an iGPU, I run a AMD Ryzen 3200G CPU with Radeon RX Vega 8 iGPU. 4 core 4 thread CPU, 8 core GPU.

I don’t really know what to make of the lsmod and journalctl -xn 30 outputs, I am rather new to linux and nixos in specific, but here they are

Apr 29 20:03:32 nixos systemd[1062]: Reached target Timers.
β–‘β–‘ Subject: A start job for unit UNIT has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 17.
Apr 29 20:03:32 nixos systemd[1062]: Starting D-Bus User Message Bus Socket...
β–‘β–‘ Subject: A start job for unit UNIT has begun execution
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has begun execution.
β–‘β–‘ 
β–‘β–‘ The job identifier is 14.
Apr 29 20:03:32 nixos systemd[1062]: Listening on PipeWire PulseAudio.
β–‘β–‘ Subject: A start job for unit UNIT has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 8.
Apr 29 20:03:32 nixos systemd[1062]: Listening on PipeWire Multimedia System Sockets.
β–‘β–‘ Subject: A start job for unit UNIT has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 13.
Apr 29 20:03:33 nixos systemd[1062]: Listening on D-Bus User Message Bus Socket.
β–‘β–‘ Subject: A start job for unit UNIT has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 14.
Apr 29 20:03:33 nixos systemd[1062]: Reached target Sockets.
β–‘β–‘ Subject: A start job for unit UNIT has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 7.
Apr 29 20:03:33 nixos systemd[1062]: Reached target Basic System.
β–‘β–‘ Subject: A start job for unit UNIT has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 6.
Apr 29 20:03:33 nixos systemd[1]: Started User Manager for UID 1000.
β–‘β–‘ Subject: A start job for unit user@1000.service has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit user@1000.service has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 422.
Apr 29 20:03:33 nixos systemd[1062]: Starting Run user-specific NixOS activation...
β–‘β–‘ Subject: A start job for unit UNIT has begun execution
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has begun execution.
β–‘β–‘ 
β–‘β–‘ The job identifier is 18.
Apr 29 20:03:33 nixos systemd[1]: Started Session 1 of User roland.
β–‘β–‘ Subject: A start job for unit session-1.scope has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit session-1.scope has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 483.
Apr 29 20:03:33 nixos systemd[1062]: Starting Run KDE Plasma via systemd...
β–‘β–‘ Subject: A start job for unit UNIT has begun execution
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has begun execution.
β–‘β–‘ 
β–‘β–‘ The job identifier is 16.
Apr 29 20:03:33 nixos login[980]: pam_kwallet5(login:session): pam_kwallet5: pam_sm_open_session
Apr 29 20:03:33 nixos login[980]: pam_kwallet5(login:session): pam_kwallet5: not a graphical session, skipping. Use force_run parameter to ignore this.
Apr 29 20:03:33 nixos login[980]: pam_kwallet5(login:setcred): pam_kwallet5: pam_sm_setcred
Apr 29 20:03:33 nixos nixos-activation-start[1074]: removed '/home/roland/.cache/icon-cache.kcache'
Apr 29 20:03:33 nixos nixos-activation-start[1078]: removed '/home/roland/.cache/ksycoca5_en_65yjkDinDniwUAG5I1j97Y6Maqk='
Apr 29 20:03:33 nixos nixos-activation-start[1078]: removed '/home/roland/.cache/ksycoca5_en_dYXWOEITDBve6zK_u+JvX5UFtCU='
Apr 29 20:03:33 nixos nixos-activation-start[1078]: removed '/home/roland/.cache/ksycoca5_en_FY3gJGf23q702+dxqiAEV_ittII='
Apr 29 20:03:33 nixos nixos-activation-start[1078]: removed '/home/roland/.cache/ksycoca5_en__k1A4IJCdr5nirQ3yV6O9zXR0UA='
Apr 29 20:03:33 nixos nixos-activation-start[1078]: removed '/home/roland/.cache/ksycoca5_en_lVPGN5jPiUUqt+LLcFS5QUyY8zI='
Apr 29 20:03:33 nixos nixos-activation-start[1078]: removed '/home/roland/.cache/ksycoca5_en_mZqW9X_hQQ8MUkR0AcJVzatGHiY='
Apr 29 20:03:33 nixos nixos-activation-start[1078]: removed '/home/roland/.cache/ksycoca5_en_NVAW0Zr+qZAnuAfcJEgkcODnbIw='
Apr 29 20:03:33 nixos systemd[1062]: Finished Run KDE Plasma via systemd.
β–‘β–‘ Subject: A start job for unit UNIT has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 16.
Apr 29 20:03:33 nixos nixos-activation-start[1079]: kbuildsycoca5 running...
Apr 29 20:03:35 nixos systemd[1062]: Finished Run user-specific NixOS activation.
β–‘β–‘ Subject: A start job for unit UNIT has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 18.
Apr 29 20:03:35 nixos systemd[1062]: Reached target Main User Target.
β–‘β–‘ Subject: A start job for unit UNIT has finished successfully
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ A start job for unit UNIT has finished successfully.
β–‘β–‘ 
β–‘β–‘ The job identifier is 5.
Apr 29 20:03:35 nixos systemd[1062]: Startup finished in 3.195s.
β–‘β–‘ Subject: User manager start-up is now complete
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ The user manager instance for user 1000 has been started. All services queued
β–‘β–‘ for starting have been started. Note that other services might still be starting
β–‘β–‘ up or be started at any later time.
β–‘β–‘ 
β–‘β–‘ Startup of the manager took 3195719 microseconds.
Apr 29 20:03:36 nixos systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
β–‘β–‘ Subject: Unit succeeded
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ The unit NetworkManager-dispatcher.service has successfully entered the 'dead' state.
Apr 29 20:03:36 nixos systemd[1]: NetworkManager-dispatcher.service: Consumed 56ms CPU time, 10.4M memory peak, 6.2M read from disk.
β–‘β–‘ Subject: Resources consumed by unit runtime
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ The unit NetworkManager-dispatcher.service completed and consumed the indicated resources.
Apr 29 20:03:51 nixos systemd[1]: systemd-hostnamed.service: Deactivated successfully.
β–‘β–‘ Subject: Unit succeeded
β–‘β–‘ Defined-By: systemd
β–‘β–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
β–‘β–‘ 
β–‘β–‘ The unit systemd-hostnamed.service has successfully entered the 'dead' state.

Module                  Size  Used by
af_packet              65536  2
rfkill                 40960  1
xt_conntrack           12288  2
nf_conntrack          204800  1 xt_conntrack
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         12288  1 nf_conntrack
ip6t_rpfilter          12288  1
ipt_rpfilter           12288  1
xt_pkttype             12288  2
xt_LOG                 16384  2
nf_log_syslog          24576  2
xt_tcpudp              16384  3
nft_compat             24576  11
nf_tables             376832  101 nft_compat
libcrc32c              12288  2 nf_conntrack,nf_tables
sch_fq_codel           20480  2
uinput                 20480  0
edac_mce_amd           53248  0
edac_core             110592  0
intel_rapl_msr         20480  0
snd_hda_codec_realtek   200704  1
intel_rapl_common      40960  1 intel_rapl_msr
snd_hda_codec_generic   110592  1 snd_hda_codec_realtek
ledtrig_audio          12288  1 snd_hda_codec_generic
snd_hda_codec_hdmi     98304  1
input_leds             12288  0
led_class              20480  2 snd_hda_codec_generic,input_leds
snd_hda_intel          65536  0
crc32_pclmul           12288  0
snd_intel_dspcfg       36864  1 snd_hda_intel
polyval_clmulni        12288  0
joydev                 24576  0
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
polyval_generic        12288  1 polyval_clmulni
mousedev               24576  0
gf128mul               16384  1 polyval_generic
snd_hda_codec         217088  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          139264  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              20480  1 snd_hda_codec
ghash_clmulni_intel    16384  0
sha512_ssse3           53248  0
snd_pcm               184320  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
r8169                 118784  0
sha256_ssse3           32768  0
snd_timer              49152  1 snd_pcm
sha1_ssse3             32768  0
aesni_intel           360448  0
sp5100_tco             20480  0
snd                   151552  8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
realtek                40960  1
watchdog               49152  1 sp5100_tco
mdio_devres            12288  1 r8169
crypto_simd            16384  1 aesni_intel
soundcore              16384  1 snd
libphy                212992  3 r8169,mdio_devres,realtek
evdev                  28672  19
cryptd                 28672  2 crypto_simd,ghash_clmulni_intel
mac_hid                12288  0
gigabyte_wmi           12288  0
rapl                   20480  0
wmi_bmof               12288  0
acpi_cpufreq           32768  0
k10temp                16384  0
i2c_piix4              32768  0
video                  77824  0
backlight              28672  1 video
gpio_amdpt             16384  0
thermal                28672  0
gpio_generic           20480  1 gpio_amdpt
tiny_power_button      12288  0
wmi                    45056  3 video,gigabyte_wmi,wmi_bmof
button                 24576  0
ecc                    40960  0
atkbd                  40960  0
libps2                 24576  1 atkbd
serio                  28672  1 atkbd
vivaldi_fmap           12288  1 atkbd
loop                   40960  0
tun                    69632  0
tap                    32768  0
macvlan                36864  0
bridge                397312  0
stp                    12288  1 bridge
llc                    16384  2 bridge,stp
ccp                   155648  0
rng_core               20480  1 ccp
kvm                  1347584  0
irqbypass              12288  1 kvm
fuse                  192512  1
efi_pstore             12288  0
configfs               69632  1
nfnetlink              20480  3 nft_compat,nf_tables
dmi_sysfs              24576  0
ip_tables              28672  0
x_tables               53248  8 xt_conntrack,ip6t_rpfilter,nft_compat,xt_LOG,xt_tcpudp,ipt_rpfilter,xt_pkttype,ip_tables
autofs4                61440  0
ext4                 1146880  1
crc32c_generic         12288  0
crc16                  12288  1 ext4
mbcache                16384  1 ext4
jbd2                  204800  1 ext4
hid_logitech_hidpp     77824  0
hid_logitech_dj        40960  0
hid_generic            12288  0
uas                    32768  1
usb_storage            94208  1 uas
usbhid                 81920  2 hid_logitech_dj,hid_logitech_hidpp
sd_mod                 90112  1
hid                   180224  4 usbhid,hid_generic,hid_logitech_dj,hid_logitech_hidpp
t10_pi                 20480  1 sd_mod
sr_mod                 28672  0
cdrom                  81920  1 sr_mod
crc64_rocksoft         16384  1 t10_pi
crc64                  16384  1 crc64_rocksoft
crc_t10dif             16384  1 t10_pi
crct10dif_generic      12288  0
ahci                   57344  0
libahci                61440  1 ahci
libata                487424  2 libahci,ahci
xhci_pci               28672  0
xhci_pci_renesas       24576  1 xhci_pci
scsi_mod              327680  5 sd_mod,usb_storage,uas,libata,sr_mod
crct10dif_pclmul       12288  1
crct10dif_common       12288  3 crct10dif_generic,crc_t10dif,crct10dif_pclmul
xhci_hcd              389120  1 xhci_pci
crc32c_intel           16384  3
scsi_common            16384  6 scsi_mod,sd_mod,usb_storage,uas,libata,sr_mod
rtc_cmos               28672  1
dm_mod                217088  0
dax                    53248  1 dm_mod

This is my Nvidia Block for my RTX4060 idk maybe you can just try to copy it

{
  config,
  ...
}:
{
  services.xserver.videoDrivers = [ "nvidia" ];
  nixpkgs.config.nvidia.acceptLicense = true;

  hardware.nvidia = {
    modesetting.enable = true;
    powerManagement.enable = false;
    powerManagement.finegrained = false;
    open = false;
    nvidiaSettings = false;
    package = config.boot.kernelPackages.nvidiaPackages.beta;
  };
  boot.kernelParams = [ "nvidia-drm.fbdev=1" ];
}

I don’t think your GPU is supported by nvidia-open.

Echsm’s config worked! When I get the chance, I will see what particularly fixed it, but for now it works.