module(wluma): Fix wluma module doesn't use extraSettings

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 101749eb84
commit fd9ef02112
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -33,21 +33,23 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.wluma = { services.wluma = {
enable = true; enable = true;
settings = { settings =
als = { {
webcam = { als = {
video = 0; webcam = {
thresholds = { video = 0;
"0" = "night"; thresholds = {
"15" = "dark"; "0" = "night";
"30" = "dim"; "15" = "dark";
"45" = "normal"; "30" = "dim";
"60" = "bright"; "45" = "normal";
"75" = "outdoors"; "60" = "bright";
"75" = "outdoors";
};
}; };
}; };
}; }
}; // cfg.extraSettings;
systemd = { systemd = {
enable = true; enable = true;
}; };