feat(nix): add keys enum to global cfg

This commit is contained in:
2025-07-07 03:22:16 +02:00
parent 4611ad87a8
commit d85ebc0e78
4 changed files with 42 additions and 22 deletions

View File

@@ -30,15 +30,23 @@ let
};
in
{
options.services.lidm.config = lib.mkOption {
type =
with lib.types;
oneOf [
str
attrs
];
default = { };
description = "Config options for lidm | Either attr tree or name of bundled themes";
options = {
lidm.keysEnum = lib.mkOption {
type = with lib.types; attrs;
default = lidm.passthru.keysEnum;
readOnly = true;
description = "Keys enum constants";
};
services.lidm.config = lib.mkOption {
type =
with lib.types;
oneOf [
str
attrs
];
default = { };
description = "Config options for lidm | Either attr tree or name of bundled themes";
};
};
config = {
services.displayManager.defaultSession = "lidm";