nix-config/modules/home-manager/desktop/media/mpv.nix
Oliver Davies 54b43e4203
All checks were successful
/ check (push) Successful in 1m21s
Remove features
2025-05-03 16:50:27 +01:00

22 lines
392 B
Nix

{ config, lib, ... }:
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";
};
};
};
}