{ lib, config, ... }: let inherit (lib) mkIf mkOption types; in { options.smayzy.sddm.enable = mkOption { type = types.bool; default = false; description = "sddm"; }; config = mkIf config.smayzy.sddm.enable { services.displayManager.sddm.enable = true; services.displayManager.sddm.wayland.enable = true; }; }