feature(niri): use home-managers new niri-module to configure niri on my machines with host-specific additions

This commit is contained in:
2026-10-01 18:43:48 +02:00
parent 73e17de1a1
commit ea2682f31d
6 changed files with 375 additions and 0 deletions
+3
View File
@@ -23,6 +23,9 @@
../../modules/nixos/vial.nix
];
# host-specific niri config (input devices, laptop binds)
home-manager.users.aaron.imports = [ ./niri.nix ];
# set hostname
networking.hostName = "neon";
+34
View File
@@ -0,0 +1,34 @@
# neon: laptop, built-in display is auto-configured by niri
{ lib, ... }:
let
brightness = step: {
_props.allow-when-locked = true;
spawn = [
"brightnessctl"
"--class=backlight"
"set"
step
];
};
in
{
wayland.windowManager.niri.settings = {
input.touchpad = {
tap = { };
natural-scroll = { };
};
layout.gaps = lib.mkForce 10;
binds = {
"Print".screenshot = { };
"Ctrl+Print".screenshot-screen = { };
"Mod+Shift+P".power-off-monitors = { };
# finer brightness steps; mkForce, since spawn lists would otherwise be concatenated
"XF86MonBrightnessUp" = lib.mkForce (brightness "+1%");
"XF86MonBrightnessDown" = lib.mkForce (brightness "1%-");
};
};
}