28 lines
425 B
Nix
28 lines
425 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
metaLib = config.meta.lib;
|
|
in
|
|
{
|
|
flake.modules.nixos.input =
|
|
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inputProfiles = metaLib.mkInputProfiles config.meta.host.input;
|
|
in
|
|
{
|
|
services.libinput = lib.mkIf inputProfiles.hasPointerConfig {
|
|
enable = true;
|
|
inherit (inputProfiles.libinput)
|
|
mouse
|
|
touchpad
|
|
;
|
|
};
|
|
};
|
|
}
|