Extract an mpv mixin
This commit is contained in:
parent
85cb5d0f1f
commit
21198b5bf9
7 changed files with 12 additions and 23 deletions
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./mpv.nix
|
||||
./pocket-casts.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue