Group modules into feature directories
This commit is contained in:
parent
0baed7e6f6
commit
9782272a76
49 changed files with 244 additions and 83 deletions
17
nix/modules/home-manager/features/desktop/media/mpv.nix
Normal file
17
nix/modules/home-manager/features/desktop/media/mpv.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.features.desktop.media.mpv.enable = lib.mkEnableOption "Enable mpv media player";
|
||||
|
||||
config = lib.mkIf config.features.desktop.media.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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue