add per-applet toggle options for lock screen widgets

This commit is contained in:
Damocles 2026-04-17 22:42:39 +02:00
parent 8f66d67029
commit 74967d798c
4 changed files with 19 additions and 4 deletions

View file

@ -96,11 +96,22 @@ in
"power"
"backgroundOverlay"
"overviewBackdrop"
"lock"
] (name: moduleOpt name { });
in
simpleModules
// {
lock = moduleOpt "lock" {
mpris = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Show media controls on the lock screen.";
};
volume = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Show volume slider on the lock screen.";
};
};
notifications = moduleOpt "notifications" {
timeout = lib.mkOption {
type = lib.types.int;