programs: assorted: convert /mnt/servo "extraPaths" into "extraHomePaths" where possible

This commit is contained in:
2024-02-12 12:54:16 +00:00
parent a90b5b53db
commit 354ce378f6
8 changed files with 12 additions and 27 deletions

View File

@@ -303,13 +303,11 @@ in
gimp.sandbox.wrapperType = "wrappedDerivation";
gimp.sandbox.extraHomePaths = [
"Pictures"
"Pictures/servo-macros"
"dev"
"ref"
"tmp"
];
gimp.sandbox.extraPaths = [
"/mnt/servo/media/Pictures"
];
gimp.sandbox.autodetectCliPaths = true;
"gnome.gnome-calculator".sandbox.method = "bwrap";

View File

@@ -6,10 +6,9 @@
sandbox.wrapperType = "wrappedDerivation";
sandbox.extraHomePaths = [
"Books"
"Books/servo"
];
sandbox.extraPaths = [
"/mnt/servo/media/Books"
];
# cozy uses a sqlite db for its config and exposes no CLI options other than --help and --debug
persist.byStore.plaintext = [
".local/share/cozy" # sqlite db (config & index?)

View File

@@ -240,6 +240,7 @@ in
"dev" # for developing anything web-related
"tmp"
"Pictures"
"Pictures/servo-macros"
] ++ lib.optionals cfg.addons.browserpass-extension.enable [
# browserpass needs these paths:
# - private/knowledge/secrets/accounts: where the encrypted account secrets live
@@ -253,11 +254,6 @@ in
# ".config/sops"
"private/knowledge/secrets/accounts"
];
sandbox.extraPaths = [
# ~/Pictures/servo-macros links to here.
# TODO: consider a bind-mount, so that access to ~/Pictures also gives access to here.
"/mnt/servo/media/Pictures/macros"
];
fs.".config/sops".dir = lib.mkIf cfg.addons.browserpass-extension.enable {}; #< needs to be created, not *just* added to the sandbox
suggestedPrograms = [

View File

@@ -41,10 +41,10 @@ in
sandbox.extraHomePaths = [
"Music"
"Videos"
"Videos/servo"
];
sandbox.extraPaths = [
"/mnt/servo/media/Music"
"/mnt/servo/media/Videos"
];
};
# for serving local files

View File

@@ -6,13 +6,11 @@
sandbox.extraHomePaths = [
"Music"
"Pictures" # i have some videos in there too.
"Pictures/servo-macros"
"Videos"
"Videos/servo"
"tmp"
];
sandbox.extraPaths = [
"/mnt/servo/media/Pictures"
"/mnt/servo/media/Videos"
];
sandbox.autodetectCliPaths = true;
# disable expensive sambda dependency; i don't use it.

View File

@@ -6,13 +6,11 @@
sandbox.extraHomePaths = [
"Music"
"Pictures" # i have some videos in there too.
"Pictures/servo-macros"
"Videos"
"Videos/servo"
"tmp"
];
sandbox.extraPaths = [
"/mnt/servo/media/Pictures"
"/mnt/servo/media/Videos"
];
sandbox.whitelistDri = true;
packageUnwrapped = pkgs.kdenlive.override {
ffmpeg-full = pkgs.ffmpeg-full.override {

View File

@@ -51,9 +51,7 @@ in {
sandbox.whitelistDri = true; # reduces startup time and subjective page flip time
sandbox.extraHomePaths = [
"Books"
];
sandbox.extraPaths = [
"/mnt/servo/media/Books"
"Books/servo"
];
# koreader applies these lua "patches" at boot:
# - <https://github.com/koreader/koreader/wiki/User-patches>

View File

@@ -5,16 +5,14 @@
sandbox.wrapperType = "wrappedDerivation";
sandbox.extraHomePaths = [
"Pictures"
"Pictures/servo-macros"
"Videos"
"Videos/servo"
"dev"
"records"
"ref"
"tmp"
];
sandbox.extraPaths = [
"/mnt/servo/media/Pictures"
"/mnt/servo/media/Videos"
];
mime.associations = {
"image/gif" = "org.gnome.Loupe.desktop";
"image/heif" = "org.gnome.Loupe.desktop"; # apple codec