Currently, my kde plasma has xorg and wayland but I just want to use wayland. As I mostly just use vscodium and browser most of the time. I tried commenting out the services.xserver.enable = true;
as per the comment it generated by default that if I do not use x11 i should delete/ comment this line. But, that does not work and just keeps me inside the tty. Can anyone give a the guide to remove it fully? Oh, can I use LightDM instead of SDDM? Not a fan of this display manager. I added my configuration.nix
below if needed. Thanks!
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
# bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# hostname
networking.hostName = "dhaka";
# networking
networking.networkmanager.enable = true;
# time zone
time.timeZone = "Asia/Dhaka";
# locale
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";
};
# x11 windowing system/ xorg session
services.xserver = {
enable = true;
xkb.layout = "us";
};
# hardware graphics extra packages
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
vpl-gpu-rt
libvdpau-va-gl
intel-media-driver
intel-compute-runtime
];
extraPackages32 = with pkgs.pkgsi686Linux; [ intel-vaapi-driver ];
};
# environment variables
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; NIXOS_OZONE_WL = "1"; };
# display manager
services.displayManager.sddm.enable = true;
# desktop environment
services.desktopManager.plasma6.enable = true;
# sound with pipewire
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# user account
users.users.me = {
isNormalUser = true;
description = "home";
extraGroups = [ "networkmanager" "wheel" ];
};
# default shell configuration
users.defaultUserShell = pkgs.zsh;
programs = {
zsh = {
enable = true;
autosuggestions.enable = true;
zsh-autoenv.enable = true;
syntaxHighlighting.enable = true;
ohMyZsh = {
enable = true;
theme = "robbyrussell";
plugins = [
"git"
"history"
];
};
};
};
# users group
users.groups.libvirtd.members = [ "me" ];
# unfree packages
nixpkgs.config.allowUnfree = true;
# install programs via options
programs.kdeconnect.enable = true;
programs.virt-manager.enable = true;
# fonts
fonts.packages = with pkgs; [
roboto
unifont
fira-code
hack-font
noto-fonts
font-awesome
dejavu_fonts
liberation_ttf
lohit-fonts.bengali
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-color-emoji
];
# open banla keyboard on wayland with fcitx 5
i18n.inputMethod = {
type = "fcitx5";
enable = true;
fcitx5.waylandFrontend = true;
fcitx5.addons = with pkgs; [
fcitx5-openbangla-keyboard
];
};
# environment system packages
environment.systemPackages = with pkgs; [
vim
git
qemu
wget
kitty
unzip
clinfo
haruna
yt-dlp
firefox
vscodium
keepassxc
obs-studio
teamviewer
nixpkgs-fmt
qbittorrent
ffmpeg-full
protonvpn-gui
joplin-desktop
github-desktop
kdePackages.kate
nixfmt-rfc-style
kdePackages.kdenlive
(ungoogled-chromium.override {
enableWideVine = true;
commandLineArgs = [
"--enable-features=AcceleratedVideoEncoder,VaapiOnNvidiaGPUs,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE"
"--enable-features=VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport"
"--enable-features=UseMultiPlaneFormatForHardwareVideo"
"--ignore-gpu-blocklist"
"--enable-zero-copy"
];
})
];
# nix flakes
# nix.settings.experimental-features = [ "nix-command" "flakes" ];
# list services that you want to enable:
# teamviewer
services.teamviewer.enable = true;
# virtualization
virtualisation = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
};
# flatpak and xdg portal
services.flatpak.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
xdg.portal.config.common.default = "gtk";
# system state version
system.stateVersion = "24.11";
}