commit 8eb418431bf2442fde34b3e37ac2361b9349f48a
parent 13ce3b719f3d54530544eb7ace08b51a3543973e
Author: Vincent Demeester <vincent@sbr.pm>
Date: Tue, 2 Jul 2024 14:38:00 +0200
systems/desktop: condition services.libinput…
to 24.05 or higher.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/systems/modules/desktop/wayland.nix b/systems/modules/desktop/wayland.nix
@@ -1,7 +1,8 @@
{ config, lib, pkgs, ... }:
let
- inherit (lib) mkIf mkEnableOption mkDefault mkForce;
+ inherit (lib) mkIf mkEnableOption mkDefault mkForce versionOlder;
cfg = config.modules.desktop.wayland;
+ stable = versionOlder config.system.nixos.release "24.05";
in
{
options = {
@@ -20,14 +21,16 @@ in
enable = true;
};
};
- services.libinput = {
- touchpad = {
- disableWhileTyping = true;
- additionalOptions = ''
- Option "Ignore" "on"
- '';
+ services = {} // (if stable then {} else {
+ libinput = {
+ touchpad = {
+ disableWhileTyping = true;
+ additionalOptions = ''
+ Option "Ignore" "on"
+ '';
+ };
};
- };
+ });
environment.systemPackages = with pkgs; [
qogir-icon-theme
];