From a6343751e93c2ddc8d31b21beb803ce74552e113 Mon Sep 17 00:00:00 2001 From: ed209 Date: Mon, 26 Jan 2026 06:31:11 -0500 Subject: [PATCH] feat: add wluma module --- home-manager/home.nix | 2 + modules/home-manager/default.nix | 2 + .../home-manager/desktop/wluma/default.nix | 41 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 modules/home-manager/desktop/wluma/default.nix diff --git a/home-manager/home.nix b/home-manager/home.nix index 5d5fa42..3c26511 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -23,6 +23,8 @@ hm.nvim hm.nixgl hm.terminal + #hm.wluma + hm.zathura inputs.agenix.homeManagerModules.default ]; diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index 0c77178..0616e01 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -13,4 +13,6 @@ i3 = import ./gui/i3.nix; nixgl = import ./gui/nixgl.nix; terminal = import ./gui/terminal.nix; + wluma = import ./desktop/wluma/default.nix; + zathura = import ./desktop/zathura/default.nix; } diff --git a/modules/home-manager/desktop/wluma/default.nix b/modules/home-manager/desktop/wluma/default.nix new file mode 100644 index 0000000..6ccea7e --- /dev/null +++ b/modules/home-manager/desktop/wluma/default.nix @@ -0,0 +1,41 @@ +{ + config, + pkgs, + inputs, + ... +}: { + services.wluma = { + enable = true; + package = config.lib.nixGL.wrap pkgs.wluma; + settings = { + als = { + iio = { + path = "/sys/bus/iio/devices"; + thresholds = { + "0" = "night"; + "20" = "dark"; + "80" = "dim"; + "250" = "normal"; + "500" = "bright"; + "800" = "outdoors"; + }; + }; + }; + output = { + backlight = [ + { + name = "eDP-1"; + path = "/sys/class/backlight/amdgpu_bl1"; + capturer = "wayland"; + } + ]; + }; + keyboard = [ + { + name = "keyboard-framework"; + path = "/sys/bus/platform/devices/cros-keyboard-leds.5.auto/leds/chromeos::kbd_backlight"; + } + ]; + }; + }; +} -- 2.51.2