aboutsummaryrefslogblamecommitdiff
path: root/home/profiles/media.nix
blob: 0d53f42037ac5a7bcf32a67eb2d17c795f424960 (plain) (tree)
1
2
3
4
5
6
7
8
9
              

                              
             
          
                  
           

    



























                                                                                              
 
{ pkgs, ... }:
{
  home.packages = with pkgs; [
    darktable
    ffmpeg
    transmission_4
    vlc-bin
  ];

  programs.mpv = {
    enable = true;
    config = {
      screenshot-directory = "~/Documents/screenshots";
      ontop = true;
      profile = "gpu-hq";
    };
    scripts = with pkgs.mpvScripts; [
      sponsorblock
      quality-menu # Switch video quality from YT on-the-go
      vr-reversal # Script for mpv to play VR video with optional saving of head tracking data
    ];
  };

  programs.yt-dlp = {
    enable = true;

    settings = {
      mtime = false;
      merge-output-format = "mkv";
      restrict-filenames = true;
      embed-thumbnail = true;
      embed-metadata = true;
      embed-chapters = true;
      sponsorblock-mark = "sponsor";
      output = "~/Movies/%(uploader)s/%(upload_date>%Y-%m-%d)s-%(title)s-%(id)s.%(ext)s";
    };
  };
}