anchor.diff:            ];
           };
         };
  +
  +      # Remap Caps Lock to Esc
  +      xkbOptions = "caps:escape";
       };
     };
   
  
positive.code:       gnome3.dconf
      ];
  
      # Remap Caps to Ctrl (ctrl) or Esc (tap), and Esc to Caps
      interception-tools = {
        enable = true;
        plugins = [ pkgs.interception-tools-plugins.caps2esc ];
        udevmonConfig = ''
          - JOB: "intercept -g $DEVNODE | caps2esc | uinput -d $DEVNODE"
            DEVICE:
              EVENTS:
                EV_KEY: [KEY_CAPSLOCK, KEY_ESC]
        '';
      };
  
      # Allow automounting.
      gnome3.gvfs.enable = true;
  
  
negative.code:             };
            };
          };
  
        };
  
        # Disable Xterm.
  