{ config, lib, pkgs, inputs, ... }: { options.sysconfig.opts.sddm.enable = lib.mkOption { type = lib.types.bool; default = false; }; config = lib.mkIf config.sysconfig.opts.sddm.enable { qt.enable = true; services.displayManager.sddm = { enable = true; wayland.enable = true; autoNumlock = true; theme = "${inputs.tokyo-night-sddm-theme { inherit pkgs; }}"; enableHidpi = true; extraPackages = with pkgs; [ libsForQt5.qtsvg libsForQt5.qtquickcontrols2 libsForQt5.qtgraphicaleffects ]; }; }; }