~/Videos: don't persist ALL videos: just ~/Videos/local

otherwise, ~/Videos/servo is a symlink which the programs module doesn't know how to traverse (and hence, sandbox).
This commit is contained in:
Colin 2024-02-27 18:48:59 +00:00
parent 36f6c72183
commit e37a7d85b3
3 changed files with 7 additions and 6 deletions

View File

@ -11,7 +11,7 @@
"Books" "Books"
"Music" "Music"
"Pictures" "Pictures"
"Videos" "Videos/local"
# these are persisted simply to save on RAM. # these are persisted simply to save on RAM.
# ~/.cache/nix can become several GB. # ~/.cache/nix can become several GB.

View File

@ -27,12 +27,13 @@ in {
sandbox.whitelistDbus = [ "user" ]; # it won't launch without it, dunno exactly why. sandbox.whitelistDbus = [ "user" ]; # it won't launch without it, dunno exactly why.
sandbox.whitelistWayland = true; sandbox.whitelistWayland = true;
sandbox.net = "clearnet"; sandbox.net = "clearnet";
sandbox.extraHomePaths = [ "Videos/gPodder" ];
fs.".config/gpodderFeeds.opml".symlink.text = feeds.feedsToOpml wanted-feeds; fs.".config/gpodderFeeds.opml".symlink.text = feeds.feedsToOpml wanted-feeds;
# XXX: we preserve the whole thing because if we only preserve gPodder/Downloads persist.byStore.plaintext = [
# then startup is SLOW during feed import, and we might end up with zombie eps in the dl dir. "Videos/gPodder"
persist.byStore.plaintext = [ ".local/share/gPodder" ]; # if you don't persist its database, you get untracked (and hence non-gc'd) downloads, plus slooow startup.
".local/share/gPodder"
];
}; };
} }

View File

@ -63,7 +63,7 @@
"Music" "Music"
"Pictures" "Pictures"
"Pictures/servo-macros" "Pictures/servo-macros"
"Videos" "Videos/local"
"Videos/servo" "Videos/servo"
"knowledge" "knowledge"
"tmp" "tmp"