Move mpv configuration
All checks were successful
/ check (push) Successful in 1m52s

This commit is contained in:
Oliver Davies 2025-07-27 21:58:27 +01:00
parent cbd1f99bc7
commit cff6bf0167
6 changed files with 10 additions and 30 deletions

View file

@ -6,7 +6,6 @@
desktop.media = {
handbrake.enable = true;
mpv.enable = true;
};
};
}

View file

@ -31,7 +31,6 @@
media = {
handbrake.enable = true;
mpv.enable = true;
};
};
};

View file

@ -7,7 +7,6 @@
./dev-commit.nix
./gtk.nix
./media/handbrake.nix
./media/mpv.nix
./node.nix
./ranger.nix
./redshift.nix

View file

@ -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";
};
};
};
}

View 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
View file

@ -0,0 +1,3 @@
{
flake.modules.homeManager.gui.programs.mpv.enable = true;
}