add yt-dlp.nix

This commit is contained in:
Asaki Yuki 2026-04-14 13:02:59 +07:00
parent 787584f141
commit ebe0bb1d71
5 changed files with 46 additions and 23 deletions

View file

@ -1,12 +1,29 @@
{...}: {
programs.dolphin.configs = {
General = {
RememberOpenedTabs = false;
ModifiedStartupSettings = true;
FilterBar = true;
{libs, ...}: {
programs.dolphin = {
services-menu = {
copy-server-public-url = {
"Desktop Entry" = {
Type = "Service";
ServiceTypes = "KonqPopupMenu/Plugin";
MimeType = "all/allfiles";
Actions = "CopyPublicURL";
};
"Desktop Action CopyPublicURL" = {
Name = "Copy location as URL";
Icon = "org.kde.plasma.clipboard";
Exec = "${libs.root "/scripts/copy-public-url.sh"} \"%F\"";
};
};
};
ContextMenu = {
ShowOpenTerminal = false;
configs = {
General = {
RememberOpenedTabs = false;
ModifiedStartupSettings = true;
FilterBar = true;
};
ContextMenu = {
ShowOpenTerminal = false;
};
};
};
}

View file

@ -0,0 +1,6 @@
{...}: {
programs.yt-dlp = {
enable = true;
settings = {};
};
}