helm/modules/media/mpv.nix
2020-03-29 01:55:14 -04:00

20 lines
407 B
Nix

{ 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
];
};
}