Qmk: Difference between revisions

Klinger (talk | contribs)
m link. category hardware
Axka (talk | contribs)
m Fixes with code blocks
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
To access the keyboard for configuration as a normal non-root user add the following nixos configuration:
To access the keyboard for configuration as a normal non-root user add the following nixos configuration:


<syntaxHighlight lang=nix>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{
hardware.keyboard.qmk.enable = true;
  hardware.keyboard.qmk.enable = true
</nowiki>}}
}
</syntaxHighlight>


After that you can configure keyboard settings using the [https://www.caniusevia.com/ Via] app (if your firmware has enabled support for it).
After that you can configure keyboard settings using the [https://www.caniusevia.com/ Via] app (if your firmware has enabled support for it).
Line 23: Line 21:
=== Installation ===
=== Installation ===
Install the VIA package, and add the package to udev. The nixpkg disables the prompt to add the udev due to compatibility issues with NixOS, so it's necessary for the app to detect your keyboard.
Install the VIA package, and add the package to udev. The nixpkg disables the prompt to add the udev due to compatibility issues with NixOS, so it's necessary for the app to detect your keyboard.
<syntaxHighlight lang=nix>
{
  environment.systemPackages = with pkgs; [
    via
  ];
  services.udev.packages = [ pkgs.via ];
}


</syntaxHighlight>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
environment.systemPackages = with pkgs; [ via ];
services.udev.packages = with pkgs; [ via ];
</nowiki>}}


After updating udev rules a system restart is required for the changes to take effect.  
After updating udev rules a system restart is required for the changes to take effect.