niri: remove flake input, keyboard scripts

This commit is contained in:
2026-03-21 20:11:28 +01:00
parent 7dd94c7b96
commit a26bfb1501
4 changed files with 1 additions and 98 deletions

View File

@@ -1,38 +0,0 @@
{ pkgs, lib }:
let
keyboards = {
german = {
code = "de";
variant = "T3";
};
russian = {
code = "ru";
variant = "phonetic_winkeys";
};
greek = {
code = "gr";
variant = "polytonic";
};
};
keyboardScripts = lib.mapAttrs' (
name: keyboard:
lib.nameValuePair "kb-${name}" (
pkgs.writers.writeDashBin "kb-${name}" ''
exec ${lib.getExe pkgs.niphas-niri} msg action load-config-file --path ${
pkgs.niphas-niri-config-with {
input = {
keyboard = {
xkb.layout = "de,${keyboard.code}";
xkb.variant = "T3,${keyboard.variant}";
xkb.options = "compose:caps,grp:ctrls_toggle";
numlock = null;
};
};
}
}
''
)
) keyboards;
in
keyboardScripts