version 24.05 compatibility

This commit is contained in:
Nox Sluijtman 2024-06-01 14:06:25 +02:00
parent 04c2e823f4
commit 392824b511
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M

View file

@ -44,15 +44,29 @@ in {
config = mkIf cfg.enable {
services.libinput = {
mouse = {
accelProfile = cfg.mouse.accelProfile;
middleEmulation = false;
};
touchpad = mkIf cfg.touchpad.enableProperConfig {
tapping = false;
disableWhileTyping = true;
accelProfile = cfg.touchpad.accelProfile;
};
};
services.xserver = {
extraLayouts.bqn = mkIf cfg.bqn.enable {
description = "BQN layout";
languages = [ "bqn" ];
symbolsFile = ./misc/bqn;
xkb = {
options = mkIf cfg.bqn.enable "grp:switch";
layout = (if cfg.bqn.enable then "us,bqn" else "us");
extraLayouts.bqn = mkIf cfg.bqn.enable {
description = "BQN layout";
languages = [ "bqn" ];
symbolsFile = ./misc/bqn;
};
};
layout = (if cfg.bqn.enable then "us,bqn" else "us");
xkbOptions = mkIf cfg.bqn.enable "grp:switch";
enable = true;
autoRepeatDelay = 200;
@ -66,17 +80,6 @@ in {
greeters.gtk.enable = true;
background = cfg.lightdm.background;
};
libinput = {
mouse = {
accelProfile = cfg.mouse.accelProfile;
middleEmulation = false;
};
touchpad = mkIf cfg.touchpad.enableProperConfig {
tapping = false;
disableWhileTyping = true;
accelProfile = cfg.touchpad.accelProfile;
};
};
};
};
}