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

50 lines
1,001 B
Nix
Raw Normal View History

2025-07-13 06:04:55 +08:00
{
config,
inputs,
...
2025-07-13 06:04:55 +08:00
}:
let
inherit (inputs.niri-flake.lib.kdl) node leaf flag;
2025-07-13 06:04:55 +08:00
in
{
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 "intel_backlight") // { output = "eDP-1"; }) ];
2025-07-06 08:58:26 +08:00
wluma.extraSettings = {
output = {
backlight = [
{
name = "eDP-1";
path = "/sys/class/backlight/intel_backlight";
capturer = "wayland";
}
];
};
};
2025-07-13 06:04:55 +08:00
extraConfig =
let
output = node "output";
in
[
(output
[ "eDP-1" ]
[
(leaf "mode" [ "1920x1200@60.018" ])
(leaf "scale" [ 1.0 ])
(flag "focus-at-startup")
(leaf "position" [
{
x = 0;
y = 0;
}
])
(leaf "transform" [ "normal" ])
]
)
];
};
}