Split some modules up.
This commit is contained in:
parent
3136df9d3c
commit
b89851e6d6
4 changed files with 68 additions and 59 deletions
31
hosts/laptop/wluma.nix
Normal file
31
hosts/laptop/wluma.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
hardware.sensor.iio.enable = true; # brightness sensor
|
||||
home-manager.users.jsw.services.wluma = {
|
||||
enable = true;
|
||||
settings = {
|
||||
als.iio = {
|
||||
path = "/sys/bus/iio/devices";
|
||||
thresholds = {
|
||||
"0" = "night";
|
||||
"10" = "dark";
|
||||
"100" = "normal";
|
||||
"20" = "dim";
|
||||
"200" = "bright";
|
||||
"500" = "outdoors";
|
||||
};
|
||||
};
|
||||
output.backlight = [
|
||||
{
|
||||
capturer = "none";
|
||||
name = "eDP-1";
|
||||
path = "/sys/class/backlight/amdgpu_bl1";
|
||||
}
|
||||
{
|
||||
capturer = "none";
|
||||
name = "keyboard";
|
||||
path = "/sys/bus/platform/devices/cros-keyboard-leds.5.auto/leds/chromeos::kbd_backlight";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue