20 lines
403 B
Nix
20 lines
403 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.features.desktop.media.mpv.enable = mkEnableOption "Enable mpv media player";
|
|
|
|
config = mkIf config.features.desktop.media.mpv.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";
|
|
};
|
|
};
|
|
};
|
|
}
|