-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hi @k0kubun ,
I understand that due nature of this software keyboard might get messed up once in a while, however I had few surprises about the bug I just experienced and I can verify that its something to do between the 2 last commits(maybe the last commit) as I just updated my flakes then reverted back this one to 1924f2dc1a7c219b5323050a7fb27920e3a225d4.
1924f2dc1a7c219b5323050a7fb27920e3a225d4 works, however one of the xremap patch updates after v0.10.11 has a MAJOR bug that makes the keyboard unusable on NixOS.
On a side note few days ago when dealing with k3s my home-manager/nixos conflict almost crashed down my 2 laptops(one NixOS, other Arch Linux), render them almost unusable since problem crashed the bootloader, it was something to do with cgroups with GRUB settings. I had to recover my system after like few hours of work to revert it back to life. Since problem was in GRUB it was near impossible to recover, I had to use a boot USB on arch and do several manual changes with the help of an LLM. So lately I'm getting even more picky/sensitive on having everything very stable.
I remember why I used this flake in my system nixOS flake.nix: I share my nix configuration with my Arch Linux laptop as well, so I could not simply use a NixOS module and there were no home-manager xremap module if I remember correctly. However it seems this flake is/will be an unstable approach given my keyboard messed up and it seems only way to lock it down was:
xremap-flake.url = "github:xremap/nix-flake/1924f2dc1a7c219b5323050a7fb27920e3a225d4";So please provide the inputs.xremap-flake.homeManagerModules.default directly on home-manager modules and update it there, so a simple nix flake update cannot mess my keyboard.
I used this flake for this, sharing it between NixOS and non-NixOS systems, however a direct home-manager module probably is a more stable approach, in addition to a direct NixOS module, without a need for this nix-flake repository:
# in my users/izelnakri/default.nix:
xremap = {
watch = true;
# mouse = true;
withWlroots = true;
# debug = true; # Logs everything
yamlConfig = (builtins.readFile (builtins.toPath "${config.home.homeDirectory}/.config/home-manager/static/.config/xremap/${HOSTNAME}/config.yml"));
# yamlConfig = builtins.readFile (builtins.toString ../../static/.config/xremap + "/" + (builtins.readFile "/proc/sys/kernel/hostname") + "/config.yml");
};