summaryrefslogtreecommitdiffstats
path: root/tv/3modules/hw.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-02-15 13:52:20 +0100
committertv <tv@krebsco.de>2021-02-15 13:52:20 +0100
commit9b16ee4c75f169a4d59fcff1d15fc5640b03bb7f (patch)
tree34c8a299466884ad4dcdb25679467f6220f241c4 /tv/3modules/hw.nix
parentda4590c37794da12d566522e6a53db08624a90f2 (diff)
tv.hw.screens: init
Diffstat (limited to 'tv/3modules/hw.nix')
-rw-r--r--tv/3modules/hw.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/tv/3modules/hw.nix b/tv/3modules/hw.nix
new file mode 100644
index 0000000..6eb722d
--- /dev/null
+++ b/tv/3modules/hw.nix
@@ -0,0 +1,16 @@
+let
+ lib = import <stockholm/lib>;
+ local.types.screen = lib.types.submodule {
+ options.width = lib.mkOption {
+ type = lib.types.uint;
+ };
+ options.height = lib.mkOption {
+ type = lib.types.uint;
+ };
+ };
+in {
+ options.tv.hw.screens = lib.mkOption {
+ type = lib.types.attrsOf local.types.screen;
+ default = {};
+ };
+}