aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/home/apps/mpv/default.nix
blob: e7a62dbf542e22f0e1a16d00b26450ba20ce2428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ 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";
      };
    };
  };
}