tv.hw.screens: init

This commit is contained in:
tv 2021-02-15 13:52:20 +01:00
parent 824e5f02a1
commit d2edb22d9f
2 changed files with 17 additions and 0 deletions

View File

@ -5,6 +5,7 @@
./ejabberd
./focus.nix
./hosts.nix
./hw.nix
./im.nix
./iptables.nix
./slock.nix

16
tv/3modules/hw.nix Normal file
View File

@ -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 = {};
};
}