hmApps, refactor, clean up, break groups
This commit is contained in:
parent
49cb3c949c
commit
7cc650aea6
32 changed files with 13 additions and 69 deletions
22
hmModules/apps/mpv/app.nix
Normal file
22
hmModules/apps/mpv/app.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options.mpv = {
|
||||
enable = lib.mkEnableOption "Enables mpv";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mpv.enable {
|
||||
home.packages = with pkgs; [
|
||||
yt-dlp
|
||||
];
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
config = {
|
||||
volume-max = 150;
|
||||
force-window = "yes";
|
||||
script-opts = "ytdl_hook-ytdl_path=yt-dlp";
|
||||
ytdl-format = "bestvideo[height<=?1080][vcodec!=vp9]+bestaudio/best";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue