nixos/home/david/configurations/Tytonidae/niri.nix
ulic-youthlic 1319168f0b
Update flake inputs
1. Use `stdenv.hostPlatform.system` instead of `system`.
2. Use `runCommand` instead of `runCommandNoCC`.
3. Add new nixpkgs instance for neochat.
4. Set niri config to null when other GUI module.
2025-11-02 04:09:52 +08:00

39 lines
955 B
Nix

{ config, lib, ... }:
let
cfg = config.david.programs.niri;
in
{
david.programs.niri = lib.mkIf cfg.enable {
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"; })
];
wluma.extraSettings = {
output = {
backlight = [
{
name = "eDP-2";
path = "/sys/class/backlight/nvidia_0";
capturer = "wayland";
}
{
name = "DP-1";
path = "/sys/class/backlight/ddcci13";
capturer = "wayland";
}
];
};
keyboard = [
{
name = "keyboard-asus";
path = "/sys/bus/platform/devices/asus-nb-wmi/leds/asus::kbd_backlight";
}
];
};
extraConfig = [ ];
};
}