From fb56631ef3ebdf23f3f06a7c1c57da2de266c8d0 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 15 May 2021 21:20:28 +0200 Subject: [PATCH] home: add mpv --- home/default.nix | 1 + home/mpv.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 home/mpv.nix diff --git a/home/default.nix b/home/default.nix index 7f0e587..ddbf1ca 100644 --- a/home/default.nix +++ b/home/default.nix @@ -14,6 +14,7 @@ ./gtk.nix ./htop.nix ./jq.nix + ./mpv.nix ./nix-index.nix ./nm-applet.nix ./packages.nix diff --git a/home/mpv.nix b/home/mpv.nix new file mode 100644 index 0000000..9aef379 --- /dev/null +++ b/home/mpv.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.my.home.mpv; +in +{ + options.my.home.mpv = with lib; { + enable = mkEnableOption "mpv configuration"; + }; + + config = lib.mkIf cfg.enable { + programs.mpv = { + enable = true; + + scripts = [ + pkgs.mpvScripts.mpris # Allow controlling using media keys + ]; + }; + }; +}