Merge branch 'main' of antimatterForge:Egg/voidconf

This commit is contained in:
Nox Sluijtman 2024-02-05 23:04:24 +01:00
commit 8283068de3

View file

@ -8,9 +8,10 @@ in {
bqn.enable = mkEnableOption "Enables bqn layout"; bqn.enable = mkEnableOption "Enables bqn layout";
touchpad.enableProperConfig = mkEnableOption "Enable the only correct touchpad settings"; touchpad = {
enableProperConfig = mkEnableOption "Enable the only correct touchpad settings";
touchpad.accelProfile = mkOption { accelProfile = mkOption {
type = types.enum [ "flat" "adaptive" ]; type = types.enum [ "flat" "adaptive" ];
default = "adaptive"; default = "adaptive";
example = "flat"; example = "flat";
@ -19,6 +20,8 @@ in {
''; '';
}; };
};
mouse.accelProfile = mkOption { mouse.accelProfile = mkOption {
type = types.enum [ "flat" "adaptive" ]; type = types.enum [ "flat" "adaptive" ];
default = "flat"; default = "flat";
@ -68,10 +71,10 @@ in {
accelProfile = cfg.mouse.accelProfile; accelProfile = cfg.mouse.accelProfile;
middleEmulation = false; middleEmulation = false;
}; };
touchpad.accelProfile = cfg.touchpad.accelProfile;
touchpad = mkIf cfg.touchpad.enableProperConfig { touchpad = mkIf cfg.touchpad.enableProperConfig {
tapping = false; tapping = false;
disableWhileTyping = true; disableWhileTyping = true;
accelProfile = cfg.touchpad.accelProfile;
}; };
}; };
}; };