This commit is contained in:
CronyAkatsuki 2025-02-01 09:36:29 +01:00
parent bd5f04a391
commit b04d83a755
2 changed files with 56 additions and 0 deletions

View File

@ -5,6 +5,7 @@
./zsh.nix ./zsh.nix
./tmux.nix ./tmux.nix
./nnn.nix ./nnn.nix
./mpv.nix
]; ];
crony.mangohud.enable = lib.mkDefault true; crony.mangohud.enable = lib.mkDefault true;
@ -12,4 +13,5 @@
crony.zsh.enable = lib.mkDefault true; crony.zsh.enable = lib.mkDefault true;
crony.tmux.enable = lib.mkDefault true; crony.tmux.enable = lib.mkDefault true;
crony.nnn.enable = lib.mkDefault true; crony.nnn.enable = lib.mkDefault true;
crony.mpv.enable = lib.mkDefault true;
} }

View File

@ -0,0 +1,54 @@
{
config,
pkgs,
lib,
...
}: {
options = {
crony.mpv.enable = lib.mkEnableOption "Enable mpv and customize it to my preference.";
};
config = lib.mkIf config.crony.mpv.enable {
programs.mpv = {
enable = true;
config = {
ytdl-format = "ytdl-format=bestvideo[height<=?1080][fps<=?60][vcodec!~='vp0?9'][vcodec!*=av01]+bestaudio/best";
fs = true;
force-window = "immediate";
hr-seek-framedrop = "no";
profile = "gpu-hq";
hwdec = "nvdec-copy";
gpu-api = "vulkan";
vo = "gpu-next";
screenshot-format = "png";
screenshot-high-bit-depth = "yes";
screenshot-png-compression = "7";
screenshot-directory = "~/pics/mpv/";
screenshot-template = "%F - [%P]v%#01n";
alang = "'jpn,jp,eng,en'";
sub-file-paths = "Subs;subs";
sub-auto = "all";
slang = "english,eng,en,enUS";
reset-on-next-file = "pause";
# no-osd-bar = false;
osd-duration = "500";
deband = "yes";
deband-iterations = "2";
deband-threshold = "35";
deband-range = "20";
deband-grain = "5";
dither-depth = "auto";
scale = "ewa_lanczossharp";
dscale = "mitchell";
cscale = "spline36";
};
scripts = with pkgs.mpvScripts; [
mpris
sponsorblock
thumbfast
quality-menu
];
};
};
}