nix-config/modules/home/mpv/default.nix
Bruno BELANYI 066a33587d
Some checks are pending
ci/woodpecker/push/check Pipeline is pending
home: mpv: add uosc script
2023-12-16 20:24:38 +00:00

21 lines
380 B
Nix

{ 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
pkgs.mpvScripts.uosc # Nicer UI
];
};
};
}