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 + ]; + }; + }; +}