refactor(waybar): register owned modules

This commit was merged in pull request #168.
This commit is contained in:
2026-10-11 21:07:35 -04:00
parent 3c9d0ec886
commit ee29e53f7c
19 changed files with 315 additions and 237 deletions

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.";
};
};
};
}

View File

@@ -10,9 +10,9 @@
};
icon = lib.mkOption {
description = "Sets the Nerd Font codepoint shown for matching windows.";
description = "Sets the icon shown for matching windows.";
type = lib.types.str;
example = "f269";
example = "";
};
};
};