summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorJamie Rolfs <jamie.rolfs@gmail.com>2017-10-03 12:13:51 -0700
committerJamie Rolfs <jamie.rolfs@gmail.com>2017-10-03 14:16:23 -0700
commitcc279e8a044361dbed1cc6330b5db9c60309293e (patch)
tree311f82d40e026becb4c826d17d936ebffc7e890d /modules/system
parent11b0d93c4eabfb7a8cec827517b18d004831d157 (diff)
Write trackpad preferences to non-bluetooth namespace as well
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults-write.nix4
-rw-r--r--modules/system/defaults/default.nix4
2 files changed, 6 insertions, 2 deletions
diff --git a/modules/system/defaults-write.nix b/modules/system/defaults-write.nix
index 7ad97da..7a5eba4 100644
--- a/modules/system/defaults-write.nix
+++ b/modules/system/defaults-write.nix
@@ -23,7 +23,8 @@ let
LaunchServices = defaultsToList "com.apple.LaunchServices" cfg.LaunchServices;
dock = defaultsToList "com.apple.dock" cfg.dock;
finder = defaultsToList "com.apple.finder" cfg.finder;
- trackpad = defaultsToList "com.apple.driver.AppleBluetoothMultitouch.trackpad" cfg.trackpad;
+ trackpad = defaultsToList "com.apple.AppleMultitouchTrackpad" cfg.trackpad;
+ trackpadBluetooth = defaultsToList "com.apple.driver.AppleBluetoothMultitouch.trackpad" cfg.trackpad;
in
@@ -42,6 +43,7 @@ in
${concatStringsSep "\n" dock}
${concatStringsSep "\n" finder}
${concatStringsSep "\n" trackpad}
+ ${concatStringsSep "\n" trackpadBluetooth}
'';
};
diff --git a/modules/system/defaults/default.nix b/modules/system/defaults/default.nix
index 0f9877d..cb78518 100644
--- a/modules/system/defaults/default.nix
+++ b/modules/system/defaults/default.nix
@@ -20,7 +20,8 @@ let
global = defaultsToList "-g" cfg.global;
dock = defaultsToList "com.apple.dock" cfg.dock;
finder = defaultsToList "com.apple.finder" cfg.finder;
- trackpad = defaultsToList "com.apple.driver.AppleBluetoothMultitouch.trackpad" cfg.trackpad;
+ trackpad = defaultsToList "com.apple.AppleMultitouchTrackpad" cfg.trackpad;
+ trackpadBluetooth = defaultsToList "com.apple.driver.AppleBluetoothMultitouch.trackpad" cfg.trackpad;
LaunchServices = defaultsToList "com.apple.LaunchServices" cfg.LaunchServices;
in
@@ -39,6 +40,7 @@ in
${concatStringsSep "\n" dock}
${concatStringsSep "\n" finder}
${concatStringsSep "\n" trackpad}
+ ${concatStringsSep "\n" trackpadBluetooth}
${concatStringsSep "\n" LaunchServices}
'';