25 lines
		
	
	
	
		
			483 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			483 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   config,
 | |
|   lib,
 | |
|   pkgs,
 | |
|   username,
 | |
|   ...
 | |
| }:
 | |
| 
 | |
| with lib;
 | |
| 
 | |
| {
 | |
|   options.nixosModules.screenkey.enable = mkEnableOption "Enable screenkey";
 | |
| 
 | |
|   config = mkIf config.nixosModules.screenkey.enable {
 | |
|     environment.systemPackages = with pkgs; [ screenkey ];
 | |
| 
 | |
|     home-manager.users.${username}.xdg.configFile."screenkey.json".text = builtins.toJSON {
 | |
|       key_mode = "composed";
 | |
|       mods_mode = "emacs";
 | |
|       persist = true;
 | |
|       size = "small";
 | |
|       timeout = 0.25;
 | |
|     };
 | |
|   };
 | |
| }
 |