nix-config/modules/home-manager/desktop/media/mpv.nix
Oliver Davies f0217e4640
All checks were successful
/ check (push) Successful in 1m38s
Pin mpv to nixpkgs stable
The unstable version is showing a blue screen instead of the video.
2025-06-04 00:26:11 +01:00

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";
};
};
};
}