aboutsummaryrefslogtreecommitdiff
path: root/modules/home/apps/mpv/default.nix
blob: 565c9388839313102e6e6b1c2b58ae57dbbc2363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ options, config, lib, namespace, ... }:

with lib; with lib.${namespace}; let
  cfg = config.${namespace}.apps.mpv;
in {
  options.${namespace}.apps.mpv = with types; {
    enable = mkEnableOption "mpv";
  };

  config = mkIf cfg.enable {
    programs.mpv = {
      enable = true;
      
      config = {
        screenshot-format = "png";
        screenshot-template = "~/Pictures/Screenshots/mpv/%F/%P";

        sub-auto = "fuzzy";
      };
    };
  };
}