nix-config/modules/home-manager/desktop/media/mpv.nix
Oliver Davies 6a87e455bd
All checks were successful
/ check (push) Successful in 1m39s
nix fmt
2025-07-10 22:55:59 +01:00

27 lines
424 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.features.desktop.media.mpv;
in
{
options.features.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";
};
};
};
}