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 ++++++++++++++++++++ snowfall/modules/home/suites/media/default.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 snowfall/modules/home/apps/mpv/default.nix (limited to 'snowfall/modules/home') 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"; + }; + }; + }; +} diff --git a/snowfall/modules/home/suites/media/default.nix b/snowfall/modules/home/suites/media/default.nix index 33a3394..5caf02b 100644 --- a/snowfall/modules/home/suites/media/default.nix +++ b/snowfall/modules/home/suites/media/default.nix @@ -11,6 +11,7 @@ in { cxl = { apps = { cmus.enable = true; + mpv.enable = true; }; }; }; -- cgit v1.2.3