20
hosts/common/user/configs/console/yt-dlp/default.nix
Normal file
20
hosts/common/user/configs/console/yt-dlp/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
user ? throw "user argument is required",
|
||||
home ? throw "home argument is required",
|
||||
}:
|
||||
{ config, ... }:
|
||||
{
|
||||
home-manager.users.${user}.programs.yt-dlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
live-from-start = true;
|
||||
concurrent-fragments = config.hardware.cpu.threads;
|
||||
lazy-playlist = true;
|
||||
cookies-from-browser = "firefox";
|
||||
embed-subs = true;
|
||||
sub-langs = "all,-live_chat";
|
||||
embed-thumbnail = true;
|
||||
fixup = "detect_or_warn";
|
||||
};
|
||||
};
|
||||
}
|
@@ -91,13 +91,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"text/html" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"x-scheme-handler/about" = "firefox.desktop";
|
||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
};
|
||||
xdg.mimeApps.defaultApplications = lib.attrsets.genAttrs [
|
||||
"text/html"
|
||||
"x-scheme-handler/http"
|
||||
"x-scheme-handler/https"
|
||||
"x-scheme-handler/about"
|
||||
"x-scheme-handler/unknown"
|
||||
] (_: "firefox.desktop");
|
||||
|
||||
home.sessionVariables.DEFAULT_BROWSER = lib.meta.getExe pkgs.firefox;
|
||||
|
||||
|
Reference in New Issue
Block a user