nix-config/modules/home-manager/desktop/media/mpv.nix
Oliver Davies 994b2e2b87
All checks were successful
/ check (push) Successful in 1m37s
Unpin some pinned packages
2025-06-28 00:10:59 +01:00

22 lines
398 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;
# https://github.com/mpv-player/mpv/blob/master/etc/input.conf
bindings = {
"DOWN" = "add volume -5";
"UP" = "add volume 5";
};
};
};
}