From d2edb22d9f975959fc21a19f4e9da4a591d2b2a5 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 15 Feb 2021 13:52:20 +0100 Subject: tv.hw.screens: init --- tv/3modules/default.nix | 1 + tv/3modules/hw.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tv/3modules/hw.nix (limited to 'tv') diff --git a/tv/3modules/default.nix b/tv/3modules/default.nix index 5be1beef..9f2f8e60 100644 --- a/tv/3modules/default.nix +++ b/tv/3modules/default.nix @@ -5,6 +5,7 @@ ./ejabberd ./focus.nix ./hosts.nix + ./hw.nix ./im.nix ./iptables.nix ./slock.nix diff --git a/tv/3modules/hw.nix b/tv/3modules/hw.nix new file mode 100644 index 00000000..6eb722d2 --- /dev/null +++ b/tv/3modules/hw.nix @@ -0,0 +1,16 @@ +let + lib = import ; + 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 = {}; + }; +} -- cgit v1.2.3