hardware: remove controller hacks
This commit is contained in:
		
							parent
							
								
									914d2ffde5
								
							
						
					
					
						commit
						dbb165237e
					
				
					 5 changed files with 1 additions and 60 deletions
				
			
		| 
						 | 
				
			
			@ -1,26 +0,0 @@
 | 
			
		|||
{ pkgs, lib, ... }:
 | 
			
		||||
{
 | 
			
		||||
  systemd.user.services = {
 | 
			
		||||
    autoconnect-gamepad = {
 | 
			
		||||
      Unit = {
 | 
			
		||||
        Description = "Attempt to connect to game controllers";
 | 
			
		||||
        PartOf = [ "graphical-session.target" ];
 | 
			
		||||
        After = [ "graphical-session.target" ];
 | 
			
		||||
      };
 | 
			
		||||
      Service = {
 | 
			
		||||
        ExecStart = lib.getExe pkgs.auto_connect_gamepad;
 | 
			
		||||
      };
 | 
			
		||||
      Install = {
 | 
			
		||||
        WantedBy = [ "sway-session.target" ];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  xdg.desktopEntries = {
 | 
			
		||||
    disconnect-controller = {
 | 
			
		||||
      name = "Disconnect Controller";
 | 
			
		||||
      exec = "bluetoothctl disconnect 84:30:95:97:1A:79";
 | 
			
		||||
      terminal = false;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -8,7 +8,6 @@
 | 
			
		|||
}:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./controller.nix
 | 
			
		||||
    ./waybar
 | 
			
		||||
    ./helix.nix
 | 
			
		||||
    ./kakoune
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue