From 3138059adbcead0f9cba98c13528bbb13808e037 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Fri, 7 Feb 2025 21:46:17 -0800 Subject: migration: mpv --- snowfall/modules/home/apps/mpv/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 snowfall/modules/home/apps/mpv/default.nix (limited to 'snowfall/modules/home/apps') 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"; + }; + }; + }; +} -- cgit v1.2.3