mpv scripts

This commit is contained in:
Reid 2024-05-20 19:01:50 -07:00
parent fae3d16162
commit 46af8ff2a9
2 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.software.tools.mpv;
in {
options.modules.software.tools.mpv = {
enable = mkEnableOption "Enable mpv, a lightweight video player";
};
config = mkIf cfg.enable {
hm.programs.mpv = {
enable = true;
scripts = with pkgs.mpvScripts; [
mpris
thumbnail
visualizer
];
};
};
}