2021-05-15 21:20:28 +02:00
|
|
|
{ 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
|
2023-12-16 21:24:38 +01:00
|
|
|
pkgs.mpvScripts.uosc # Nicer UI
|
2021-05-15 21:20:28 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|