helm/modules/desktop/media/mpv.nix

18 lines
322 B
Nix
Raw Permalink Normal View History

2020-03-28 22:48:43 -07:00
{ config, options, lib, pkgs, ... }:
2020-03-28 22:48:43 -07:00
with lib;
with lib.my;
let cfg = config.modules.desktop.media.mpv;
in {
options.modules.desktop.media.mpv = {
enable = mkBoolOpt false;
2020-03-28 22:48:43 -07:00
};
config = mkIf cfg.enable {
user.packages = with pkgs; [
2020-03-28 22:48:43 -07:00
mpv-with-scripts
mpvc # CLI controller for mpv
];
};
}