After Rebuilding Switch no more GUI

After upgrading my NixOS system, I am only able to access TTY1 and my graphical interface is missing. Gave the same problem to chatGBT it told me to add Plasma6 some Graphic drivers etc., i did that all but if I Upgrade the switch my GUI is still missing.

We need more info: which GPU, share your config as well, system logs, which revision of nixpkgs you’re using, etc.

I am new to nixos so i dont know what you mean by versions of nixpkgs and how i should show you the systemlogs. but here this is what i can provide you with `# Your system configuration. Help is available in the configuration.nix(5) man page

and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, pkgs, lib, … }:
let
nix-software-center = import (pkgs.fetchFromGitHub {
owner = “snowfallorg”;
repo = “nix-software-center”;
rev = “0.1.2”;
sha256 = “xiqF1mP8wFubdsAQ1BmfjzCgOD3YZf7EGWl9i69FTls=”;
}) {};
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];

Enable the display manager

services.xserver.enable = true;

Bootloader.

boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

networking.hostName = “nixos”; # Define your hostname.

Enable networking

networking.networkmanager.enable = true;

Set your time zone.

time.timeZone = “Europe/Berlin”;

Select internationalisation properties.

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

Enable the KDE Plasma Desktop Environment.

services.displayManager.sddm.enable = true;
services.xserver.enable = true;
services.desktopManager.plasma6.enable = true;
services.xserver.videoDrivers = [ “intel” ];

Commenting out duplicate plasma6 entry

services.xserver.desktopManager.plasma6.enable = true;

Configure keymap in X11

services.xserver = {
xkb.variant = “us”;
layout = “de”;
deviceSection = ‘’
Option “UseDisplayDevice” “DFP”
Option “ConnectedMonitor” “DFP”
‘’;
};

Commenting out duplicate environment.systemPackages entry

environment.systemPackages = with pkgs; [ adwaita-icon-theme ];

Configure console keymap

console.keyMap = “de”;

Enable CUPS to print documents.

services.printing.enable = true;

Flatpak

services.flatpak.enable = true;

Enable Bluetooth

hardware.bluetooth.enable = true;

Enable Experimental Features

nix.settings.experimental-features = [ “nix-command” “flakes” ];

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;
};

Define a user account. Don’t forget to set a password with ‘passwd’.

users.users.abdul = {
isNormalUser = true;
description = “Abdulelah”;
extraGroups = [ “networkmanager” “wheel” ];
packages = with pkgs; [
kdePackages.kate
nix-software-center
];
};

Install firefox.

programs.firefox.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; [
(pkgs.waybar.overrideAttrs(oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [“-Dexperimental=true”];
}))
libnotify
vim
neovim
pkgs.jetbrains-toolbox
wget
vscode
php
nerdfonts
];

fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
nerdfonts
fira-code
fira-code-symbols
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
];

networking.firewall.allowedTCPPorts = [ 8470 8471 8472 8473 8474 449 ];

Commenting out firewall disable for security purposes

networking.firewall.enable = false;

system.stateVersion = “24.05”;
}
`

Looks like you used in-line code formatting text which is done with single `text`.

but you probably meant for a

code
block

which uses three on each side like so:
```
code
block
```

Also, that looks like your configuration file. If you are using flakes you will have a flake.nix file somewhere with a line like nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05. If you are using channels, you can list them with the command nix-channel --list | grep nixos.