nixos/home/david/configurations/Tytonidae/niri.nix

37 lines
887 B
Nix
Raw Normal View History

2025-07-13 06:04:55 +08:00
{ config, ... }:
{
david.programs.niri = {
2025-07-13 06:04:55 +08:00
waybar.settings =
let
cfg = config.david.programs.niri.waybar;
in
[
(cfg.template // (cfg.helper.mkBacklight "ddcci13") // { output = "DP-1"; })
(cfg.template // (cfg.helper.mkBacklight "nvidia_0") // { output = "eDP-2"; })
2025-07-13 06:04:55 +08:00
];
2025-07-06 08:58:26 +08:00
wluma.extraSettings = {
output = {
backlight = [
{
name = "eDP-2";
2025-07-06 08:58:26 +08:00
path = "/sys/class/backlight/nvidia_0";
capturer = "wayland";
}
{
name = "DP-1";
2025-07-13 06:04:55 +08:00
path = "/sys/class/backlight/ddcci13";
2025-07-06 08:58:26 +08:00
capturer = "wayland";
}
];
};
keyboard = [
{
name = "keyboard-asus";
path = "/sys/bus/platform/devices/asus-nb-wmi/leds/asus::kbd_backlight";
}
];
};
2025-07-13 06:04:55 +08:00
extraConfig = [ ];
};
}