From 8d7c4d414044565f36f372aa88f45fe752be06f9 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Wed, 20 Sep 2023 06:35:55 +0800 Subject: [PATCH] feat: add input settings on darwin --- flakes/darwin/input.nix | 11 +++++++++++ flakes/darwin/main.nix | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 flakes/darwin/input.nix diff --git a/flakes/darwin/input.nix b/flakes/darwin/input.nix new file mode 100644 index 0000000..12bceea --- /dev/null +++ b/flakes/darwin/input.nix @@ -0,0 +1,11 @@ +{ ... }: + +{ + system.defaults = { + ".GlobalPreferences"."com.apple.mouse.scaling" = "-1"; # Disable mouse acceleration + trackpad = { + Clicking = true; + TrackpadRightClick = true; + }; + }; +} \ No newline at end of file diff --git a/flakes/darwin/main.nix b/flakes/darwin/main.nix index afb2827..0edb897 100644 --- a/flakes/darwin/main.nix +++ b/flakes/darwin/main.nix @@ -5,6 +5,8 @@ ./networking ./packages ./users + + ./input.nix ]; fonts.fonts = with pkgs; [