this repo has no description
nix
1{ lib, ... }:
2{
3 den.aspects.base = {
4 nixos = {
5 console.useXkbConfig = true;
6 services.xserver.xkb = {
7 layout = lib.mkDefault "eu";
8 # variant = "altgr-intl";
9 options = lib.mkDefault "caps:escape_shifted_compose,compose:rwin";
10 };
11 };
12
13 darwin = {
14 system = {
15 keyboard = {
16 enableKeyMapping = true;
17 # remapCapsLockToControl = false;
18 remapCapsLockToEscape = true;
19 # swapLeftCommandAndLeftAlt = false;
20 # swapLeftCtrlAndFn = false;
21
22 nonUS.remapTilde = true;
23
24 userKeyMapping = [
25 # The reverse of remapTilde, not exposed as a convenient option for us
26 # This lets us still have access to the original key behaviour
27 {
28 HIDKeyboardModifierMappingSrc = 30064771125;
29 HIDKeyboardModifierMappingDst = 30064771172;
30 }
31 ];
32 };
33
34 defaults = {
35 NSGlobalDomain = {
36 AppleKeyboardUIMode = 3;
37 ApplePressAndHoldEnabled = false;
38
39 NSAutomaticCapitalizationEnabled = false;
40 NSAutomaticDashSubstitutionEnabled = false;
41 NSAutomaticPeriodSubstitutionEnabled = false;
42 NSAutomaticQuoteSubstitutionEnabled = false;
43 NSAutomaticSpellingCorrectionEnabled = false;
44 };
45 };
46 };
47 };
48 };
49}