0xda157's home-manager and nixos config
1# SPDX-License-Identifier: MIT
2# Copyright (c) 2021 Gabriel Fontes
3{ lib, ... }:
4let
5 inherit (lib) mkOption types;
6in
7{
8 options.l.monitors = mkOption {
9 type = types.listOf (
10 types.submodule {
11 options = {
12 name = mkOption {
13 type = types.str;
14 example = "DP-1";
15 };
16 noBar = mkOption {
17 type = types.bool;
18 default = false;
19 };
20 width = mkOption {
21 type = types.int;
22 example = 1920;
23 };
24 height = mkOption {
25 type = types.int;
26 example = 1080;
27 };
28 refreshRate = mkOption {
29 type = types.int;
30 default = 60;
31 };
32 x = mkOption {
33 type = types.int;
34 default = 0;
35 };
36 y = mkOption {
37 type = types.int;
38 default = 0;
39 };
40 scale = mkOption {
41 type = types.float;
42 default = 1.0;
43 };
44 enabled = mkOption {
45 type = types.bool;
46 default = true;
47 };
48 workspace = mkOption {
49 type = types.nullOr types.str;
50 default = null;
51 };
52 };
53 }
54 );
55 default = [ ];
56 };
57}