Bruno BELANYI
05cf04a11f
All checks were successful
ci/woodpecker/push/check Pipeline was successful
22 lines
454 B
Nix
22 lines
454 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.mpv-cheatsheet # Show some simple mappings on '?'
|
|
pkgs.mpvScripts.uosc # Nicer UI
|
|
];
|
|
};
|
|
};
|
|
}
|