2023-01-06 16:11:56 +00:00
|
|
|
{ config, lib, sane-lib, ... }:
|
2022-11-22 05:28:41 +00:00
|
|
|
|
2023-01-08 05:24:56 +00:00
|
|
|
let
|
|
|
|
feeds = sane-lib.feeds;
|
|
|
|
all-feeds = config.sane.feeds;
|
|
|
|
wanted-feeds = feeds.filterByFormat ["podcast"] all-feeds;
|
|
|
|
podcast-urls = lib.concatStringsSep "|" (
|
|
|
|
builtins.map (feed: feed.url) wanted-feeds
|
|
|
|
);
|
|
|
|
in
|
2022-10-21 15:47:21 +00:00
|
|
|
{
|
2023-04-24 07:22:33 +00:00
|
|
|
sane.programs.vlc = {
|
2023-07-13 07:20:13 +00:00
|
|
|
persist.private = [
|
|
|
|
# vlc remembers play position in ~/.config/vlc/vlc-qt-interface.conf
|
|
|
|
# filenames are stored in plaintext (unlike mpv, which i think hashes them)
|
|
|
|
".config/vlc"
|
|
|
|
# vlc caches artwork. i'm not sure where it gets the artwork (internet? embedded metadata?)
|
|
|
|
".cache/vlc"
|
|
|
|
];
|
2023-05-08 21:41:02 +00:00
|
|
|
fs.".config/vlc/vlcrc".symlink.text = ''
|
2023-04-24 07:22:33 +00:00
|
|
|
[podcast]
|
|
|
|
podcast-urls=${podcast-urls}
|
|
|
|
[core]
|
|
|
|
metadata-network-access=0
|
|
|
|
[qt]
|
|
|
|
qt-privacy-ask=0
|
|
|
|
'';
|
2023-07-15 08:44:18 +00:00
|
|
|
|
2023-07-15 10:04:22 +00:00
|
|
|
mime.associations."audio/flac" = "vlc.desktop";
|
|
|
|
mime.associations."audio/mpeg" = "vlc.desktop";
|
|
|
|
mime.associations."audio/x-vorbis+ogg" = "vlc.desktop";
|
|
|
|
mime.associations."video/mp4" = "vlc.desktop";
|
|
|
|
mime.associations."video/quicktime" = "vlc.desktop";
|
|
|
|
mime.associations."video/webm" = "vlc.desktop";
|
|
|
|
mime.associations."video/x-matroska" = "vlc.desktop";
|
2023-04-24 07:22:33 +00:00
|
|
|
};
|
2022-10-21 15:47:21 +00:00
|
|
|
}
|