Extract an mpv mixin

This commit is contained in:
Oliver Davies 2025-04-05 09:17:15 +01:00
parent 85cb5d0f1f
commit 21198b5bf9
7 changed files with 12 additions and 23 deletions

View file

@ -1,6 +1,5 @@
{
imports = [
./mpv.nix
./pocket-casts.nix
];
}

View file

@ -1,19 +0,0 @@
{ config, lib, ... }:
with lib;
{
options.homeManagerModules.mpv.enable = mkEnableOption "Enable mpv media player";
config = mkIf config.homeManagerModules.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";
};
};
};
}

11
modules/mixins/mpv.nix Normal file
View file

@ -0,0 +1,11 @@
{
home-manager.users.opdavies.programs.mpv = {
enable = true;
# https://github.com/mpv-player/mpv/blob/master/etc/input.conf
bindings = {
"DOWN" = "add volume -5";
"UP" = "add volume 5";
};
};
}