Added android-studio module
This commit is contained in:
		
							parent
							
								
									e7bf294b91
								
							
						
					
					
						commit
						36a5aa66e8
					
				
					 3 changed files with 22 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -43,6 +43,7 @@
 | 
			
		|||
      # overlay-package-namespace = "aa";
 | 
			
		||||
      snowfall.namespace = "aa";
 | 
			
		||||
 | 
			
		||||
      channels-config.android_sdk.accept_license = true;
 | 
			
		||||
      channels-config.allowUnfree = true;
 | 
			
		||||
 | 
			
		||||
      systems.modules.nixos = with inputs; [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										21
									
								
								modules/nixos/programs/android-studio/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								modules/nixos/programs/android-studio/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  namespace,
 | 
			
		||||
  ...
 | 
			
		||||
}: let
 | 
			
		||||
  cfg = config.${namespace}.programs.android-studio;
 | 
			
		||||
in {
 | 
			
		||||
  options.${namespace}.programs.android-studio = {
 | 
			
		||||
    enable = lib.mkEnableOption "Android Studio";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = lib.mkIf cfg.enable {
 | 
			
		||||
    ${namespace}.user.extraGroups = ["kvm"];
 | 
			
		||||
 | 
			
		||||
    programs.adb.enable = true;
 | 
			
		||||
 | 
			
		||||
    environment.systemPackages = [pkgs.android-studio];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -72,8 +72,6 @@
 | 
			
		|||
    system.monitoring.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  programs.adb.enable = true;
 | 
			
		||||
 | 
			
		||||
  virtualisation = {
 | 
			
		||||
    libvirtd.enable = true;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue