All checks were successful
/ check (push) Successful in 1m38s
The unstable version is showing a blue screen instead of the video.
23 lines
431 B
Nix
23 lines
431 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.desktop.media.mpv;
|
|
in
|
|
{
|
|
options.desktop.media.mpv.enable = mkEnableOption "Enable mpv";
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.mpv = {
|
|
enable = true;
|
|
package = pkgs.stable.mpv;
|
|
|
|
# https://github.com/mpv-player/mpv/blob/master/etc/input.conf
|
|
bindings = {
|
|
"DOWN" = "add volume -5";
|
|
"UP" = "add volume 5";
|
|
};
|
|
};
|
|
};
|
|
}
|