complete rework v3

This commit is contained in:
Nickolaj Jepsen 2025-02-18 20:17:57 +01:00
parent 7409e9ca10
commit 366a0e221a
131 changed files with 20171 additions and 585 deletions

View file

@ -1,8 +1,7 @@
# https://github.com/ChangeCaps/nixos-config/tree/0cec356abc0e46ca6ba27b3cf01cd51273bd4a69
{lib, ...}: let
mkOptionMonitor = lib.mkOption {
default = {};
type = lib.types.submodule {
{lib, ...}: {
options.monitors = lib.mkOption {
type = lib.types.listOf (lib.types.submodule {
options = {
name = lib.mkOption {
type = lib.types.nullOr lib.types.str;
@ -23,9 +22,8 @@
};
position = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
example = "0x0";
type = lib.types.str;
default = "0x0";
};
scale = lib.mkOption {
@ -37,21 +35,8 @@
type = lib.types.bool;
default = true;
};
workspace = lib.mkOption {
type = lib.types.nullOr lib.types.int;
default = null;
description = "The workspace assigned to the monitor.";
};
};
};
};
in {
options.monitor = {
primary = mkOptionMonitor;
left = mkOptionMonitor;
right = mkOptionMonitor;
above = mkOptionMonitor;
below = mkOptionMonitor;
});
default = [{}];
};
}