{ pkgs, lib, inputs, ... }: { imports = [ inputs.sddm-sugar-candy-nix.nixosModules.default ]; # Disable X11 services.xserver = { enable = false; # TODO: Is this necessary without X11? It was added by NixOS installer xkb = { layout = "us"; variant = ""; }; }; # Enable SDDM w/ Sugar Candy theme services.displayManager.sddm = { enable = true; # Use kwin for wayland support wayland = { enable = true; compositor = "kwin"; }; # Enable high resolution support enableHidpi = true; # Qt5 compatibility to allow Sugar Candy theme package = lib.mkForce pkgs.libsForQt5.sddm; extraPackages = lib.mkForce [ pkgs.libsForQt5.qtbase pkgs.libsForQt5.qt5.qtgraphicaleffects ]; # Use same cursor theme as plasma settings = { Theme = { CursorTheme = "Vimix-cursors"; }; }; # Enable sugar candy theme via sddm-sugar-candy-nix flake sugarCandyNix = { enable = true; settings = { Background = "${pkgs.kdePackages.plasma-workspace-wallpapers}/share/wallpapers/Patak/contents/images_dark/3840x2160.png"; ScreenWidth = 3072; ScreenHeight = 1920; FormPosition = "left"; HaveFormBackground = true; PartialBlur = true; FontSize = "12"; }; }; }; }