~/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"
"Music"
"Pictures"
"Videos"
"Videos/local"
# these are persisted simply to save on RAM.
# ~/.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.whitelistWayland = true;
sandbox.net = "clearnet";
sandbox.extraHomePaths = [ "Videos/gPodder" ];
fs.".config/gpodderFeeds.opml".symlink.text = feeds.feedsToOpml wanted-feeds;
# XXX: we preserve the whole thing because if we only preserve gPodder/Downloads
# then startup is SLOW during feed import, and we might end up with zombie eps in the dl dir.
persist.byStore.plaintext = [ ".local/share/gPodder" ];
persist.byStore.plaintext = [
"Videos/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"
"Pictures"
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"knowledge"
"tmp"