blob: c2a3a6afd573230aa61ae12db296331532ae3f7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ lib, config, pkgs, ... }:
let cfg = config.my.home.mpv;
in
{
options.my.home.mpv = with lib; {
enable = mkEnableOption "mpv configuration";
};
config = lib.mkIf cfg.enable {
programs.mpv = {
enable = true;
config = {
sub-auto = "fuzzy";
vo = "gpu";
hwdec = "auto-safe";
gpu-context = "wayland";
audio-display = "no";
cache-pause = "no";
cache = "yes";
mute = "no";
osc = "yes";
screenshot-directory = "~/documents/screenshots/mpv-screenshots/";
screenshot-format = "png";
};
scripts = lib.attrVals [ "sponsorblock" ] pkgs.mpvScripts;
};
};
}
|