mpv scripts
This commit is contained in:
parent
fae3d16162
commit
46af8ff2a9
2 changed files with 25 additions and 1 deletions
22
modules/software/tools/mpv.nix
Normal file
22
modules/software/tools/mpv.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue