mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
darwin config key remapping
This commit is contained in:
parent
6facfd9715
commit
18fdb1b562
2 changed files with 23 additions and 2 deletions
|
@ -46,8 +46,8 @@ in {
|
||||||
|
|
||||||
targets.darwin = {
|
targets.darwin = {
|
||||||
defaults = {
|
defaults = {
|
||||||
"com.googlecode.iterm2" = import ./iterm2.nix;
|
"com.googlecode.iterm2" = ./iterm2.nix;
|
||||||
"com.apple.finder" = import ./finder.nix;
|
"com.apple.finder" = ./finder.nix;
|
||||||
NSGlobalDomain = {
|
NSGlobalDomain = {
|
||||||
AppleLanguages = [ "en-CA" ];
|
AppleLanguages = [ "en-CA" ];
|
||||||
AppleLocale = "en_CA";
|
AppleLocale = "en_CA";
|
||||||
|
|
|
@ -6,4 +6,25 @@
|
||||||
nix.package = pkgs.nix;
|
nix.package = pkgs.nix;
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
system = {
|
||||||
|
defaults = {
|
||||||
|
loginwindow.SHOWFULLNAME = false;
|
||||||
|
loginwindow.GuestEnabled = false;
|
||||||
|
loginwindow.DisableConsoleAccess = true;
|
||||||
|
finder._FXShowPosixPathInTitle = true;
|
||||||
|
LaunchServices.LSQuarantine = false;
|
||||||
|
};
|
||||||
|
keyboard = {
|
||||||
|
enableKeyMapping = true;
|
||||||
|
|
||||||
|
remapCapsLockToEscape = true;
|
||||||
|
|
||||||
|
# see https://developer.apple.com/library/content/technotes/tn2450/_index.html for more info
|
||||||
|
userKeyMapping = [ {
|
||||||
|
HIDKeyboardModifierMappingSrc = 30064771303; # remap right command to right control.
|
||||||
|
HIDKeyboardModifierMappingDst = 30064771300;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue