diff options
Diffstat (limited to 'snowfall/modules/home/apps/mpv/default.nix')
| -rw-r--r-- | snowfall/modules/home/apps/mpv/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/snowfall/modules/home/apps/mpv/default.nix b/snowfall/modules/home/apps/mpv/default.nix new file mode 100644 index 0000000..e7a62db --- /dev/null +++ b/snowfall/modules/home/apps/mpv/default.nix @@ -0,0 +1,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"; + }; + }; + }; +} |