nix/option/Display.nix

26 lines
432 B
Nix
Raw Permalink Normal View History

2024-11-16 06:38:48 +03:00
# Screen configuration.
{ lib, ... }:
2024-11-16 06:38:48 +03:00
{
options.module.display = {
dpiAware = lib.mkOption {
default = false;
type = lib.types.bool;
};
primary = lib.mkOption {
default = "*";
type = lib.types.str;
};
rotate = lib.mkOption {
default = { };
type =
with lib.types;
attrsOf (enum [
0
90
180
270
]);
};
};
2024-11-16 06:38:48 +03:00
}