options to settings

This commit is contained in:
2025-07-19 12:25:07 +02:00
parent b92c4dc53f
commit 323dfcbc82
21 changed files with 147 additions and 147 deletions

View File

@@ -0,0 +1,55 @@
# Yanked from Misterio77
{lib, ...}: let
inherit (lib) mkOption types;
in {
options.settings.monitors = mkOption {
type = types.listOf (
types.submodule {
options = {
name = mkOption {
type = types.str;
example = "DP-1";
};
width = mkOption {
type = types.int;
example = 1920;
};
height = mkOption {
type = types.int;
example = 1080;
};
refreshRate = mkOption {
type = types.int;
default = 60;
};
transform = mkOption {
type = types.int;
default = 0;
};
bitDepth = mkOption {
type = types.nullOr types.int;
default = null;
example = 10;
};
position = mkOption {
type = types.str;
default = "auto";
};
scale = mkOption {
type = types.str;
default = "1";
};
enabled = mkOption {
type = types.bool;
default = true;
};
workspace = mkOption {
type = types.nullOr types.str;
default = null;
};
};
}
);
default = [];
};
}