Extract an mpv mixin
This commit is contained in:
parent
85cb5d0f1f
commit
21198b5bf9
7 changed files with 12 additions and 23 deletions
|
@ -3,7 +3,6 @@
|
|||
{
|
||||
homeManagerModules = {
|
||||
gtk.enable = true;
|
||||
mpv.enable = true;
|
||||
pocket-casts.enable = true;
|
||||
tmux-sessionizer.enable = true;
|
||||
};
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
{
|
||||
homeManagerModules = {
|
||||
gtk.enable = true;
|
||||
mpv.enable = true;
|
||||
newsboat.enable = true;
|
||||
|
||||
notes = {
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
{
|
||||
homeManagerModules = {
|
||||
gtk.enable = true;
|
||||
mpv.enable = true;
|
||||
|
||||
notes = {
|
||||
enable = true;
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
../../modules/mixins/flameshot.nix
|
||||
../../modules/mixins/fonts.nix
|
||||
../../modules/mixins/fzf.nix
|
||||
../../modules/mixins/mpv.nix
|
||||
../../modules/mixins/phpactor
|
||||
../../modules/mixins/pipewire.nix
|
||||
../../modules/mixins/screenkey.nix
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
11
modules/mixins/mpv.nix
Normal file
11
modules/mixins/mpv.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue