Organise Home Manager modules

This commit is contained in:
Oliver Davies 2025-04-23 23:05:45 +01:00
parent 81043d8f38
commit 2e91ed63c8
7 changed files with 26 additions and 12 deletions

View file

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

View file

@ -0,0 +1,22 @@
{ config, lib, ... }:
with lib;
let
cfg = config.homeManagerModules.desktop.media.mpv;
in
{
options.homeManagerModules.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";
};
};
};
}