docs: move explanations into short module headers

Non-obvious context sits in a brief header at the top of a module, everything else uses single-line comments. niri binds use spawn-sh strings, so neon only overrides the command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 09:25:40 +02:00
co-authored by Claude Opus 5.5
parent 8d19be9527
commit 06b656477b
10 changed files with 88 additions and 207 deletions
+1
View File
@@ -1,4 +1,5 @@
# argon: desktop with two 1440p monitors side by side
{
wayland.windowManager.niri.settings = {
input = {
+1 -1
View File
@@ -1,4 +1,4 @@
# 0x29a nixos conifg
# 0x29a nixos config
{ pkgs, ... }:
+5 -15
View File
@@ -1,17 +1,7 @@
# neon: laptop, built-in display is auto-configured by niri
# neon: laptop, the 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 = {
@@ -26,9 +16,9 @@ in
"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%-");
# finer brightness steps
"XF86MonBrightnessUp".spawn-sh = lib.mkForce "brightnessctl --class=backlight set +1%";
"XF86MonBrightnessDown".spawn-sh = lib.mkForce "brightnessctl --class=backlight set 1%-";
};
};
}