refactor(waybar): register owned modules

This commit was merged in pull request #168.
This commit is contained in:
alexion committed 2026-10-11 21:07:35 -04:00
1 parent 3c9d0ec886
commit ee29e53f7c
19 files changed
+315 -237

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
{ lib, ... }:
{
type = lib.types.submodule {
options = {
position = lib.mkOption {
type = lib.types.enum [
"left"
"center"
"right"
];
default = "right";
description = "Selects the Waybar section that shows the module.";
};
order = lib.mkOption {
type = lib.types.int;
default = 100;
example = 50;
description = "Sorts the module within its Waybar section.";
};
settings = lib.mkOption {
type = lib.types.attrsOf lib.types.anything;
default = { };
description = "Sets the Waybar module configuration.";
};
};
};
}