Added media player & jellyfin stuff
This commit is contained in:
		
							parent
							
								
									650cfe1724
								
							
						
					
					
						commit
						32ba5505f0
					
				|  | @ -8,6 +8,7 @@ | |||
|     ./gnome-common.nix | ||||
|     ./kdeconnect.nix | ||||
|     ./kitty.nix | ||||
|     ./media.nix | ||||
|     ./nextcloud.nix | ||||
|     ./spotify.nix | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										26
									
								
								modules/applications/media.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								modules/applications/media.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| let | ||||
|   cfg = config.this.application.media; | ||||
|   graphical = config.this.graphical; | ||||
| in with lib; { | ||||
|   options = { | ||||
|     this.application.media.enable = mkOption { | ||||
|       default = graphical.enable; | ||||
|       type = with types; bool; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     home-manager.users.james = { | ||||
|       programs.mpv = { | ||||
|         enable = true; | ||||
|         scripts = with pkgs.mpvScripts; [ mpris thumbnail ]; | ||||
|       }; | ||||
|       home.packages = with pkgs; [ | ||||
|         jellyfin-mpv-shim | ||||
|         jellyfin-media-player | ||||
|         jftui | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 James Patrick
						James Patrick