23 lines
		
	
	
	
		
			393 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			393 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  pkgs,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}: {
 | 
						|
  services.keyd = {
 | 
						|
    enable = true;
 | 
						|
    keyboards.default = {
 | 
						|
      ids = ["*"];
 | 
						|
      settings = {
 | 
						|
        capslock = "overload(control, esc)";
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
  environment.etc."libinput/local-overrides.quirks".text = ''
 | 
						|
    [Serial Keyboards]
 | 
						|
 | 
						|
    MatchUdevType=keyboard
 | 
						|
    MatchName=keyd*keyboard
 | 
						|
    AttrKeyboardIntegration=internal
 | 
						|
  '';
 | 
						|
}
 |