1
0
Fork 0
nix-config/modules/home/apps/mpv/default.nix
2025-02-27 17:33:29 +01:00

24 lines
331 B
Nix

{
config,
lib,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.apps.mpv;
in
{
options.${namespace}.apps.mpv = with types; {
enable = mkBoolOpt false "Whether or not to enable mpv.";
};
config = mkIf cfg.enable {
programs.mpv = {
enable = true;
};
};
}