Task 3 - Gaming profile: - Add gpu.nix with ROCm runtime/smi/info and vulkan-tools - Import gpu.nix in gaming profile aggregator Task 4 - Media profile: - Add unimatrix to yt-dlp.nix packages - (plexamp, webcord, mpv config were already present) Task 5 - Desktop apps: - Add productivity.nix with pomodoro-timer - Import productivity.nix in desktop apps aggregator
33 lines
617 B
Nix
33 lines
617 B
Nix
# yt-dlp and media playback — YouTube downloader with MPV integration.
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.profiles.media.ytDlp;
|
|
in {
|
|
options.profiles.media.ytDlp.enable = mkEnableOption "enable yt-dlp and media playback";
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
plexamp
|
|
unimatrix
|
|
webcord
|
|
];
|
|
|
|
programs.mpv = {
|
|
enable = true;
|
|
bindings = {
|
|
WHEEL_UP = "seek 10";
|
|
WHEEL_DOWN = "seek -10";
|
|
};
|
|
config = {
|
|
profile = "gpu-hq";
|
|
ytdl-format = "bestvideo+bestaudio";
|
|
};
|
|
};
|
|
};
|
|
}
|