home: add mpv
This commit is contained in:
parent
4d0ab2e5a6
commit
82099b19f3
|
@ -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
19
home/mpv.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue