~ruther/nixos-config

e55f782c73dd66646c8b20092d88533842bbf48c — Frantisek Bohacek 1 year, 6 months ago 1a15c26
feat: add natural scrolling, and map caps lock to ctrl
2 files changed, 10 insertions(+), 1 deletions(-)

M hosts/laptop/default.nix
M modules/desktop/default.nix
M hosts/laptop/default.nix => hosts/laptop/default.nix +9 -0
@@ 61,6 61,15 @@
    logind.lidSwitch = "ignore";           # Laptop does not go to sleep when lid is closed
    auto-cpufreq.enable = true;
    blueman.enable = true;

    xserver.libinput = {
      enable = true;
      touchpad = {
        naturalScrolling = true;
        tapping = true;
        tappingDragLock = true;
      };
    };
  };

  networking.wireguard.interfaces = {

M modules/desktop/default.nix => modules/desktop/default.nix +1 -1
@@ 7,7 7,7 @@

      layout = "us,cz";                              # Keyboard layout & €-sign
      xkbVariant = ",qwerty";
      xkbOptions = "grp:alt_shift_toggle";
      xkbOptions = "grp:alt_shift_toggle ctrl:nocaps";
      libinput.enable = true;
      modules = [ pkgs.xf86_input_wacom ];        # Both needed for wacom tablet usage
      wacom.enable = true;

Do not follow this link