module(wluma): Fix wluma module doesn't use extraSettings
This commit is contained in:
parent
101749eb84
commit
fd9ef02112
1 changed files with 15 additions and 13 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue