nichts/modules/programs/gui/mpv.nix

27 lines
533 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
pkgs,
...
2024-07-21 15:11:55 +02:00
}: let
cfg = config.modules.usrEnv.programs.media.mpv;
inherit (config.modules.other.system) username;
inherit (lib) mkIf;
2024-04-10 17:39:26 +02:00
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.mpv = {
enable = true;
config = {
hwdec = "auto";
volume = 50;
osc = "no";
osd-bar = "no";
border = "no";
2024-04-10 17:39:26 +02:00
};
2024-05-22 14:29:45 +02:00
scripts = with pkgs.mpvScripts; [mpris thumbfast sponsorblock uosc];
};
2024-04-10 17:39:26 +02:00
};
};
2024-04-10 17:39:26 +02:00
}