This commit is contained in:
parent
cbd1f99bc7
commit
cff6bf0167
6 changed files with 10 additions and 30 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
desktop.media = {
|
||||
handbrake.enable = true;
|
||||
mpv.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
media = {
|
||||
handbrake.enable = true;
|
||||
mpv.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
./dev-commit.nix
|
||||
./gtk.nix
|
||||
./media/handbrake.nix
|
||||
./media/mpv.nix
|
||||
./node.nix
|
||||
./ranger.nix
|
||||
./redshift.nix
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
7
modules2/mpv/bindings.nix
Normal file
7
modules2/mpv/bindings.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
# https://github.com/mpv-player/mpv/blob/master/etc/input.conf
|
||||
flake.modules.homeManager.gui.programs.mpv.bindings = {
|
||||
"DOWN" = "add volume -5";
|
||||
"UP" = "add volume 5";
|
||||
};
|
||||
}
|
3
modules2/mpv/enable.nix
Normal file
3
modules2/mpv/enable.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
flake.modules.homeManager.gui.programs.mpv.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue