2024-02-01 15:28:40 +00:00
|
|
|
{ config, lib, pkgs, 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 = {
|
2024-02-01 15:28:40 +00:00
|
|
|
packageUnwrapped = pkgs.vlc.override {
|
|
|
|
# disable uneeded samba features to avoid an expensive samba build
|
|
|
|
samba = null;
|
|
|
|
};
|
2024-01-24 05:19:20 +00:00
|
|
|
sandbox.method = "bwrap";
|
2024-01-29 13:45:57 +00:00
|
|
|
sandbox.wrapperType = "wrappedDerivation";
|
2024-02-08 21:51:32 +00:00
|
|
|
sandbox.net = "clearnet";
|
2024-01-27 17:19:48 +00:00
|
|
|
sandbox.autodetectCliPaths = true;
|
2023-11-08 15:32:50 +00:00
|
|
|
persist.byStore.private = [
|
2023-07-13 07:20:13 +00:00
|
|
|
# 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";
|
2024-01-01 11:48:18 +00:00
|
|
|
mime.associations."video/x-flv" = "vlc.desktop";
|
2023-07-15 10:04:22 +00:00
|
|
|
mime.associations."video/x-matroska" = "vlc.desktop";
|
2023-04-24 07:22:33 +00:00
|
|
|
};
|
2022-10-21 15:47:21 +00:00
|
|
|
}
|