forked from jan-leila/nix-config
		
	feat: started to create polycule package
This commit is contained in:
		
							parent
							
								
									6dfe3ac326
								
							
						
					
					
						commit
						c10c610034
					
				
					 6 changed files with 2646 additions and 0 deletions
				
			
		|  | @ -38,5 +38,6 @@ | |||
|     ./davinci-resolve.nix | ||||
|     ./gdx-liftoff.nix | ||||
|     ./tor-browser.nix | ||||
|     ./polycule.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										32
									
								
								modules/home-manager-modules/programs/polycule.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								modules/home-manager-modules/programs/polycule.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   config, | ||||
|   osConfig, | ||||
|   ... | ||||
| }: { | ||||
|   options.programs.polycule = { | ||||
|     enable = lib.mkEnableOption "enable polycule matrix client"; | ||||
|     package = lib.mkPackageOption pkgs "polycule" {}; | ||||
|   }; | ||||
| 
 | ||||
|   config = lib.mkIf config.programs.polycule.enable (lib.mkMerge [ | ||||
|     { | ||||
|       home.packages = [ | ||||
|         config.programs.polycule.package | ||||
|       ]; | ||||
|     } | ||||
|     ( | ||||
|       lib.mkIf osConfig.host.impermanence.enable { | ||||
|         home.persistence."/persist${config.home.homeDirectory}" = { | ||||
|           # TODO: check that these are actually the correct folders | ||||
|           # directories = [ | ||||
|           #   "${config.xdg.configHome}/polycule" | ||||
|           #   "${config.xdg.dataHome}/polycule" | ||||
|           #   "${config.xdg.cacheHome}/polycule" | ||||
|           # ]; | ||||
|         }; | ||||
|       } | ||||
|     ) | ||||
|   ]); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue