From 3bf91d810f97b68b123ca86ce10214b4da333d22 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 3 Dec 2024 13:32:15 +0100 Subject: [PATCH] common/libinput: move to own nix file --- hosts/common/default.nix | 6 +----- hosts/common/services/libinput.nix | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 hosts/common/services/libinput.nix diff --git a/hosts/common/default.nix b/hosts/common/default.nix index e1c3258..693830e 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -16,6 +16,7 @@ in { ./services/dbus.nix ./services/irqbalance.nix ./services/journald.nix + ./services/libinput.nix ./services/openssh.nix ./services/pcscd.nix ./services/pipewire.nix @@ -132,11 +133,6 @@ in { android-udev-rules light ]; - - libinput = { - enable = !config.machineVars.headless; - touchpad.disableWhileTyping = true; - }; }; programs = { diff --git a/hosts/common/services/libinput.nix b/hosts/common/services/libinput.nix new file mode 100644 index 0000000..53c352b --- /dev/null +++ b/hosts/common/services/libinput.nix @@ -0,0 +1,7 @@ +{ config, ...}: +{ + services.libinput = { + enable = !config.machineVars.headless; + touchpad.disableWhileTyping = true; + }; +} \ No newline at end of file