Qmk: Difference between revisions

Axka (talk | contribs)
Make code blocks use File template
Axka (talk | contribs)
m Fixes with code blocks
 
Line 11: Line 11:


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


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