This commit is contained in:
Peritia 2026-02-12 15:32:45 +01:00
parent b6b87d5aed
commit 9c72a71585
3546 changed files with 18655 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{
config,
lib,
nixosVista,
...
}: let
cfg = nixosVista.hyprland.input;
optionalLine = name: value:
lib.optional (value != null && value != "")
"${name} = ${value}";
lines =
[
"kb_layout = ${cfg.kb_layout}"
"follow_mouse = ${toString cfg.follow_mouse}"
"sensitivity = ${toString cfg.sensitivity}"
]
++ optionalLine "kb_options" cfg.kb_options
++ optionalLine "kb_rules" cfg.kb_rules
++ optionalLine "kb_variant" cfg.kb_variant
++ optionalLine "kb_model" cfg.kb_model;
in {
config = lib.mkIf nixosVista.enable {
nixosVista.hyprland.fragments.input = ''
############################################################
# Input
############################################################
input {
${lib.concatStringsSep "\n " lines}
touchpad {
natural_scroll = ${lib.boolToString cfg.touchpad.natural_scroll}
}
}
'';
};
}