Simon Bruder
10b8d432d5
This applies the REUSE specification to the repository, so the licensing information can be tracked for every file individually.
33 lines
760 B
Nix
33 lines
760 B
Nix
# SPDX-FileCopyrightText: 2021-2023 Simon Bruder <simon@sbruder.de>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{ lib, pkgs, ... }:
|
|
let
|
|
ytdl-format = map (vc: "bestvideo[vcodec^=${vc}][width<=1920]+bestaudio[acodec^=opus]") [ "av01" "vp09" "avc1" ]
|
|
++ [
|
|
"bestvideo+bestaudio[acodec^=opus]"
|
|
"bestvideo+bestaudio"
|
|
"best"
|
|
];
|
|
in
|
|
{
|
|
xdg.configFile."ytcc/ytcc.conf".text = lib.generators.toINI { } {
|
|
ytcc = {
|
|
mpv_flags = lib.concatStringsSep " " [
|
|
"--really-quiet"
|
|
"--volume=90"
|
|
"--profile=clear-speed"
|
|
"--ytdl"
|
|
"--ytdl-format=${lib.concatStringsSep "/" ytdl-format}"
|
|
];
|
|
};
|
|
|
|
theme = {
|
|
table_alternate_background = 0;
|
|
};
|
|
};
|
|
|
|
home.packages = with pkgs; [ ytcc ];
|
|
}
|