41 lines
		
	
	
	
		
			636 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			636 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   config,
 | |
|   lib,
 | |
|   pkgs,
 | |
|   ...
 | |
| }:
 | |
| 
 | |
| with lib;
 | |
| 
 | |
| let
 | |
|   cfg = config.features.cli.bluetuith;
 | |
| in
 | |
| {
 | |
|   options.features.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
 | |
| 
 | |
|   config = mkIf cfg.enable {
 | |
|     home.packages = with pkgs; [
 | |
|       bluetuith
 | |
|     ];
 | |
| 
 | |
|     xdg.configFile."bluetuith/bluetuith.conf" = {
 | |
|       text = ''
 | |
|         {
 | |
|           adapter: ""
 | |
|           adapter-states: ""
 | |
|           connect-bdaddr: ""
 | |
|           gsm-apn: ""
 | |
|           gsm-number: ""
 | |
| 
 | |
|           keybindings: {
 | |
|             NavigateDown: j
 | |
|             NavigateUp: k
 | |
|           }
 | |
| 
 | |
|           receive-dir: ""
 | |
|           theme: {}
 | |
|         }
 | |
|       '';
 | |
|     };
 | |
|   };
 | |
| }
 |