Add trackpad gestures for mac
This commit is contained in:
parent
4b5cdbc6ce
commit
bdf42672e0
1 changed files with 42 additions and 29 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
system.configurationRevision = self.rev or self.dirtyRev or null;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
home-manager
|
home-manager
|
||||||
|
|
@ -26,16 +25,29 @@
|
||||||
onActivation.upgrade = true;
|
onActivation.upgrade = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
system.defaults = {
|
system = {
|
||||||
|
configurationRevision = self.rev or self.dirtyRev or null;
|
||||||
|
defaults = {
|
||||||
dock.autohide = true;
|
dock.autohide = true;
|
||||||
finder.FXPreferredViewStyle = "clmv";
|
finder.FXPreferredViewStyle = "clmv";
|
||||||
loginwindow.GuestEnabled = false;
|
loginwindow.GuestEnabled = false;
|
||||||
NSGlobalDomain.AppleICUForce24HourTime = true;
|
NSGlobalDomain = {
|
||||||
NSGlobalDomain.AppleInterfaceStyle = "Dark";
|
AppleICUForce24HourTime = true;
|
||||||
NSGlobalDomain.KeyRepeat = 2;
|
AppleInterfaceStyle = "Dark";
|
||||||
|
KeyRepeat = 2;
|
||||||
};
|
};
|
||||||
|
trackpad = {
|
||||||
system.activationScripts.applications.text =
|
Clicking = true;
|
||||||
|
TrackpadThreeFingerDrag = true;
|
||||||
|
TrackpadThreeFingerTapGesture = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
keyboard = {
|
||||||
|
enableKeyMapping = true;
|
||||||
|
remapCapsLockToEscape = true;
|
||||||
|
swapLeftCtrlAndFn = true;
|
||||||
|
};
|
||||||
|
activationScripts.applications.text =
|
||||||
let
|
let
|
||||||
env = pkgs.buildEnv {
|
env = pkgs.buildEnv {
|
||||||
name = "system-applications";
|
name = "system-applications";
|
||||||
|
|
@ -55,4 +67,5 @@
|
||||||
${pkgs.mkalias}/bin/mkalias "$src" "/Applications/Nix Apps/$app_name"
|
${pkgs.mkalias}/bin/mkalias "$src" "/Applications/Nix Apps/$app_name"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue