# SPDX-License-Identifier: MIT # Copyright (c) 2021 Gabriel Fontes { lib, ... }: let inherit (lib) mkOption types; in { options.l.monitors = mkOption { type = types.listOf ( types.submodule { options = { name = mkOption { type = types.str; example = "DP-1"; }; noBar = mkOption { type = types.bool; default = false; }; width = mkOption { type = types.int; example = 1920; }; height = mkOption { type = types.int; example = 1080; }; refreshRate = mkOption { type = types.int; default = 60; }; x = mkOption { type = types.int; default = 0; }; y = mkOption { type = types.int; default = 0; }; scale = mkOption { type = types.float; default = 1.0; }; enabled = mkOption { type = types.bool; default = true; }; workspace = mkOption { type = types.nullOr types.str; default = null; }; }; } ); default = [ ]; }; }