moved more packages to modules
This commit is contained in:
		
							parent
							
								
									c31eb38229
								
							
						
					
					
						commit
						2aad75a334
					
				
					 21 changed files with 453 additions and 48 deletions
				
			
		
							
								
								
									
										29
									
								
								modules/home-manager-modules/programs/picard.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								modules/home-manager-modules/programs/picard.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   config, | ||||
|   osConfig, | ||||
|   ... | ||||
| }: { | ||||
|   options.programs.picard = { | ||||
|     enable = lib.mkEnableOption "enable picard"; | ||||
|   }; | ||||
| 
 | ||||
|   config = lib.mkIf config.programs.picard.enable (lib.mkMerge [ | ||||
|     { | ||||
|       home.packages = with pkgs; [ | ||||
|         picard | ||||
|       ]; | ||||
|     } | ||||
|     ( | ||||
|       lib.mkIf osConfig.host.impermanence.enable { | ||||
|         home.persistence."/persist${config.home.homeDirectory}" = { | ||||
|           directories = [ | ||||
|             "${config.xdg.configHome}/MusicBrainz" | ||||
|           ]; | ||||
|           allowOther = true; | ||||
|         }; | ||||
|       } | ||||
|     ) | ||||
|   ]); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue