helm/modules/media/mpv.nix

20 lines
407 B
Nix
Raw Normal View History

2020-03-28 22:48:43 -07:00
{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.media.mpv = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.media.mpv.enable {
my.packages = with pkgs; [
mpv-with-scripts
mpvc # CLI controller for mpv
(mkIf config.services.xserver.enable
celluloid) # nice GTK GUI for mpv
];
};
}