Hi all! I’m quite new to NixOS and I’m trying to set up my laptop using Hyprland.
Here’s my configuration related to the keyboard. I’ve tried setting services.xserver.xkbModel
to pc105
and asus_laptop
, but nothing seems to work.
Config
services.xserver.enable = true;
services.xserver = {
layout = "fr";
xkbVariant = "azerty";
};
Neofetch output
OS: NixOS 23.05.2064.53657afe297 (Stoat) x86_64
Host: ASUSTeK COMPUTER INC. GA401QC
Kernel: 6.1.38
Shell: bash 5.2.15
DE: Hyprland (Wayland)
WM: sway
Terminal: foot
Even after researching and trying a few things, I cannot get my keyboard to work properly. Some keys don’t return anything when pressed (I tested it with xev). In particular, the following keys are not functioning:
- Volume (+/-)
- Mic mute/unmute
- ROG key
- Volume mute
Any hints would be greatly appreciated. Thank you very much.