{pkgs, ...}: {
  
  # Enable the X11 windowing system.
  services.xserver.enable = true;
  
  # Enable the Desktop Environment  
  # KDE
  services.xserver.desktopManager.plasma5.enable = true;
  services.xserver.displayManager.sddm.enable = true;
  services.xserver.displayManager.defaultSession = "plasma-bigscreen-wayland"; #plasmawayland or plasma-bigscreen-wayland
  services.xserver.desktopManager.plasma5.bigscreen.enable = true;
  
  # Auto Login
  services.xserver.displayManager.autoLogin.enable = true;
  services.xserver.displayManager.autoLogin.user = "gamer";
    
  services.flatpak.enable = true; # flatpak
  services.fwupd.enable = true; # firmware updates
  
  # packages
  environment.systemPackages = with pkgs; [
    gamescope
  ];

  # autologin workaround (https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229)
  systemd.services."getty@tty1".enable = false;
  systemd.services."autovt@tty1".enable = false;
}
