Organise Home Manager modules
This commit is contained in:
parent
81043d8f38
commit
2e91ed63c8
7 changed files with 26 additions and 12 deletions
5
modules/home-manager/desktop/media/default.nix
Normal file
5
modules/home-manager/desktop/media/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./mpv.nix
|
||||
];
|
||||
}
|
22
modules/home-manager/desktop/media/mpv.nix
Normal file
22
modules/home-manager/desktop/media/mpv.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue