From e8077fde966e051fc449fffcfa061c7f7edc47b0 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Mon, 14 Apr 2025 19:01:38 -0700 Subject: migration: finalize --- modules/home/apps/mpv/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/home/apps/mpv/default.nix (limited to 'modules/home/apps/mpv/default.nix') diff --git a/modules/home/apps/mpv/default.nix b/modules/home/apps/mpv/default.nix new file mode 100644 index 0000000..e7a62db --- /dev/null +++ b/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"; + }; + }; + }; +} -- cgit v1.2.3