forked from jan-leila/nix-config
		
	feat: installed vmware for eve home manager user
This commit is contained in:
		
							parent
							
								
									260e37e016
								
							
						
					
					
						commit
						dd165d48fe
					
				
					 3 changed files with 39 additions and 0 deletions
				
			
		|  | @ -74,6 +74,7 @@ in { | ||||||
|         guild-wars-2.enable = false; |         guild-wars-2.enable = false; | ||||||
|         vortex.enable = false; |         vortex.enable = false; | ||||||
|         dungeon-draft.enable = false; |         dungeon-draft.enable = false; | ||||||
|  |         vmware-workstation.enable = true; | ||||||
|       }) |       }) | ||||||
|     ]; |     ]; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|  | @ -44,5 +44,6 @@ | ||||||
|     ./gdx-liftoff.nix |     ./gdx-liftoff.nix | ||||||
|     ./tor-browser.nix |     ./tor-browser.nix | ||||||
|     ./polycule.nix |     ./polycule.nix | ||||||
|  |     ./vmware-workstation.nix | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										37
									
								
								modules/home-manager-modules/programs/vmware-workstation.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								modules/home-manager-modules/programs/vmware-workstation.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,37 @@ | ||||||
|  | { | ||||||
|  |   lib, | ||||||
|  |   pkgs, | ||||||
|  |   config, | ||||||
|  |   ... | ||||||
|  | }: { | ||||||
|  |   options.programs.vmware-workstation = { | ||||||
|  |     enable = lib.mkEnableOption "enable VMware Workstation"; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   config = lib.mkIf config.programs.vmware-workstation.enable ( | ||||||
|  |     lib.mkMerge [ | ||||||
|  |       { | ||||||
|  |         home.packages = with pkgs; [ | ||||||
|  |           vmware-workstation | ||||||
|  |         ]; | ||||||
|  |       } | ||||||
|  |       ( | ||||||
|  |         lib.mkIf config.impermanence.enable { | ||||||
|  |           home.persistence."/persist${config.home.homeDirectory}" = { | ||||||
|  |             directories = [ | ||||||
|  |               { | ||||||
|  |                 directory = ".vmware"; | ||||||
|  |                 method = "symlink"; | ||||||
|  |               } | ||||||
|  |               { | ||||||
|  |                 directory = "vmware"; | ||||||
|  |                 method = "symlink"; | ||||||
|  |               } | ||||||
|  |             ]; | ||||||
|  |             allowOther = true; | ||||||
|  |           }; | ||||||
|  |         } | ||||||
|  |       ) | ||||||
|  |     ] | ||||||
|  |   ); | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue