home: add mpv

This commit is contained in:
Bruno BELANYI 2021-05-15 21:20:28 +02:00
parent 9113290161
commit fb56631ef3
2 changed files with 20 additions and 0 deletions

View file

@ -14,6 +14,7 @@
./gtk.nix
./htop.nix
./jq.nix
./mpv.nix
./nix-index.nix
./nm-applet.nix
./packages.nix

19
home/mpv.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.mpv;
in
{
options.my.home.mpv = with lib; {
enable = mkEnableOption "mpv configuration";
};
config = lib.mkIf cfg.enable {
programs.mpv = {
enable = true;
scripts = [
pkgs.mpvScripts.mpris # Allow controlling using media keys
];
};
};
}