programs: assorted: convert /mnt/servo "extraPaths" into "extraHomePaths" where possible
This commit is contained in:
@@ -303,13 +303,11 @@ in
|
|||||||
gimp.sandbox.wrapperType = "wrappedDerivation";
|
gimp.sandbox.wrapperType = "wrappedDerivation";
|
||||||
gimp.sandbox.extraHomePaths = [
|
gimp.sandbox.extraHomePaths = [
|
||||||
"Pictures"
|
"Pictures"
|
||||||
|
"Pictures/servo-macros"
|
||||||
"dev"
|
"dev"
|
||||||
"ref"
|
"ref"
|
||||||
"tmp"
|
"tmp"
|
||||||
];
|
];
|
||||||
gimp.sandbox.extraPaths = [
|
|
||||||
"/mnt/servo/media/Pictures"
|
|
||||||
];
|
|
||||||
gimp.sandbox.autodetectCliPaths = true;
|
gimp.sandbox.autodetectCliPaths = true;
|
||||||
|
|
||||||
"gnome.gnome-calculator".sandbox.method = "bwrap";
|
"gnome.gnome-calculator".sandbox.method = "bwrap";
|
||||||
|
@@ -6,10 +6,9 @@
|
|||||||
sandbox.wrapperType = "wrappedDerivation";
|
sandbox.wrapperType = "wrappedDerivation";
|
||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
"Books"
|
"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
|
# cozy uses a sqlite db for its config and exposes no CLI options other than --help and --debug
|
||||||
persist.byStore.plaintext = [
|
persist.byStore.plaintext = [
|
||||||
".local/share/cozy" # sqlite db (config & index?)
|
".local/share/cozy" # sqlite db (config & index?)
|
||||||
|
@@ -240,6 +240,7 @@ in
|
|||||||
"dev" # for developing anything web-related
|
"dev" # for developing anything web-related
|
||||||
"tmp"
|
"tmp"
|
||||||
"Pictures"
|
"Pictures"
|
||||||
|
"Pictures/servo-macros"
|
||||||
] ++ lib.optionals cfg.addons.browserpass-extension.enable [
|
] ++ lib.optionals cfg.addons.browserpass-extension.enable [
|
||||||
# browserpass needs these paths:
|
# browserpass needs these paths:
|
||||||
# - private/knowledge/secrets/accounts: where the encrypted account secrets live
|
# - private/knowledge/secrets/accounts: where the encrypted account secrets live
|
||||||
@@ -253,11 +254,6 @@ in
|
|||||||
# ".config/sops"
|
# ".config/sops"
|
||||||
"private/knowledge/secrets/accounts"
|
"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
|
fs.".config/sops".dir = lib.mkIf cfg.addons.browserpass-extension.enable {}; #< needs to be created, not *just* added to the sandbox
|
||||||
|
|
||||||
suggestedPrograms = [
|
suggestedPrograms = [
|
||||||
|
@@ -41,10 +41,10 @@ in
|
|||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
"Music"
|
"Music"
|
||||||
"Videos"
|
"Videos"
|
||||||
|
"Videos/servo"
|
||||||
];
|
];
|
||||||
sandbox.extraPaths = [
|
sandbox.extraPaths = [
|
||||||
"/mnt/servo/media/Music"
|
"/mnt/servo/media/Music"
|
||||||
"/mnt/servo/media/Videos"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# for serving local files
|
# for serving local files
|
||||||
|
@@ -6,13 +6,11 @@
|
|||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
"Music"
|
"Music"
|
||||||
"Pictures" # i have some videos in there too.
|
"Pictures" # i have some videos in there too.
|
||||||
|
"Pictures/servo-macros"
|
||||||
"Videos"
|
"Videos"
|
||||||
|
"Videos/servo"
|
||||||
"tmp"
|
"tmp"
|
||||||
];
|
];
|
||||||
sandbox.extraPaths = [
|
|
||||||
"/mnt/servo/media/Pictures"
|
|
||||||
"/mnt/servo/media/Videos"
|
|
||||||
];
|
|
||||||
sandbox.autodetectCliPaths = true;
|
sandbox.autodetectCliPaths = true;
|
||||||
|
|
||||||
# disable expensive sambda dependency; i don't use it.
|
# disable expensive sambda dependency; i don't use it.
|
||||||
|
@@ -6,13 +6,11 @@
|
|||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
"Music"
|
"Music"
|
||||||
"Pictures" # i have some videos in there too.
|
"Pictures" # i have some videos in there too.
|
||||||
|
"Pictures/servo-macros"
|
||||||
"Videos"
|
"Videos"
|
||||||
|
"Videos/servo"
|
||||||
"tmp"
|
"tmp"
|
||||||
];
|
];
|
||||||
sandbox.extraPaths = [
|
|
||||||
"/mnt/servo/media/Pictures"
|
|
||||||
"/mnt/servo/media/Videos"
|
|
||||||
];
|
|
||||||
sandbox.whitelistDri = true;
|
sandbox.whitelistDri = true;
|
||||||
packageUnwrapped = pkgs.kdenlive.override {
|
packageUnwrapped = pkgs.kdenlive.override {
|
||||||
ffmpeg-full = pkgs.ffmpeg-full.override {
|
ffmpeg-full = pkgs.ffmpeg-full.override {
|
||||||
|
@@ -51,9 +51,7 @@ in {
|
|||||||
sandbox.whitelistDri = true; # reduces startup time and subjective page flip time
|
sandbox.whitelistDri = true; # reduces startup time and subjective page flip time
|
||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
"Books"
|
"Books"
|
||||||
];
|
"Books/servo"
|
||||||
sandbox.extraPaths = [
|
|
||||||
"/mnt/servo/media/Books"
|
|
||||||
];
|
];
|
||||||
# koreader applies these lua "patches" at boot:
|
# koreader applies these lua "patches" at boot:
|
||||||
# - <https://github.com/koreader/koreader/wiki/User-patches>
|
# - <https://github.com/koreader/koreader/wiki/User-patches>
|
||||||
|
@@ -5,16 +5,14 @@
|
|||||||
sandbox.wrapperType = "wrappedDerivation";
|
sandbox.wrapperType = "wrappedDerivation";
|
||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
"Pictures"
|
"Pictures"
|
||||||
|
"Pictures/servo-macros"
|
||||||
"Videos"
|
"Videos"
|
||||||
|
"Videos/servo"
|
||||||
"dev"
|
"dev"
|
||||||
"records"
|
"records"
|
||||||
"ref"
|
"ref"
|
||||||
"tmp"
|
"tmp"
|
||||||
];
|
];
|
||||||
sandbox.extraPaths = [
|
|
||||||
"/mnt/servo/media/Pictures"
|
|
||||||
"/mnt/servo/media/Videos"
|
|
||||||
];
|
|
||||||
mime.associations = {
|
mime.associations = {
|
||||||
"image/gif" = "org.gnome.Loupe.desktop";
|
"image/gif" = "org.gnome.Loupe.desktop";
|
||||||
"image/heif" = "org.gnome.Loupe.desktop"; # apple codec
|
"image/heif" = "org.gnome.Loupe.desktop"; # apple codec
|
||||||
|
Reference in New Issue
Block a user