summaryrefslogtreecommitdiffstats
path: root/modules/hw.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-09-11 18:24:28 +0200
committertv <tv@krebsco.de>2023-09-13 18:07:11 +0200
commit0c4f3acb281be6290c55a6e96bc29fab5b5c7a11 (patch)
treedadaec00477a095273475ac345b2066b4748c399 /modules/hw.nix
parentab1d0479e90f11806d4703ec6fffed3d5f782914 (diff)
stockholm -> hrm
Diffstat (limited to 'modules/hw.nix')
-rw-r--r--modules/hw.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/hw.nix b/modules/hw.nix
new file mode 100644
index 0000000..653b04f
--- /dev/null
+++ b/modules/hw.nix
@@ -0,0 +1,15 @@
+{ lib, mylib, ... }: let
+ local.types.screen = lib.types.submodule {
+ options.width = lib.mkOption {
+ type = mylib.types.uint;
+ };
+ options.height = lib.mkOption {
+ type = mylib.types.uint;
+ };
+ };
+in {
+ options.tv.hw.screens = lib.mkOption {
+ type = lib.types.attrsOf local.types.screen;
+ default = {};
+ };
+}