yep, more dotfiles
1{ config 2, lib 3, pkgs 4 5, ... 6}: 7 8let 9 cfg = config.local.fragment.kanata; 10in 11 12{ 13 options.local.fragment.kanata.enable = lib.mkEnableOption '' 14 Kanata and Ergo-L related 15 ''; 16 17 config = lib.mkIf cfg.enable { 18 services.kanata = { 19 enable = true; 20 package = pkgs.kanata; 21 22 keyboards.neo-integrated = { 23 devices = [ 24 # archaic-wiro-laptop integrated keyboard 25 "/dev/input/by-path/platform-i8042-serio-0-event-kbd" 26 ]; 27 28 extraDefCfg = "process-unmapped-keys yes"; 29 30 # Qwerty Arsenik layout 31 # See <https://ergol.org/claviers/arsenik> for mentionned reference files 32 config = builtins.readFile ./arsenik.kbd.lisp; 33 }; 34 }; 35 }; 36}