You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
764 B

  1. # This is a custom file for a chromebook.
  2. { config, lib, pkgs, modulesPath, ... }:
  3. {
  4. services.logind.extraConfig = ''
  5. # disable power button. This is for the chromebook
  6. HandlePowerKey=ignore
  7. '';
  8. # Set an usable key configuration: Ctrl at capslock, Win at Alt, Alt at Ctrl
  9. services.xserver.displayManager.sessionCommands =''
  10. ${pkgs.xorg.xmodmap}/bin/xmodmap "${pkgs.writeText "xkb-layout" ''
  11. !
  12. ! Swap Caps_Lock and Control_L
  13. !
  14. remove control = Control_L
  15. remove mod1 = Alt_L
  16. remove mod4 = Super_L
  17. keysym Control_L = Alt_L
  18. keysym Super_L = Control_L
  19. keysym Alt_L = Super_L
  20. add control = Control_L
  21. add mod1 = Alt_L
  22. add mod4 = Super_L
  23. ''}"
  24. '';
  25. }