programs: tidy: prefer "sandbox.extraHomePaths" over "fs" for external deps

This commit is contained in:
2024-01-27 14:54:17 +00:00
parent 08b1ece56e
commit 4ee2562202
2 changed files with 6 additions and 4 deletions

View File

@@ -2,6 +2,9 @@
{ {
sane.programs.dialect = { sane.programs.dialect = {
sandbox.method = "bwrap"; sandbox.method = "bwrap";
sandbox.extraHomePaths = [
".config/dconf" # to persist settings
];
packageUnwrapped = pkgs.dialect.overrideAttrs (upstream: { packageUnwrapped = pkgs.dialect.overrideAttrs (upstream: {
# TODO: send upstream # TODO: send upstream
@@ -11,8 +14,5 @@
pkgs.glib-networking # for TLS pkgs.glib-networking # for TLS
]; ];
}); });
# dialect reads settings via dconf
fs.".config/dconf" = {};
}; };
} }

View File

@@ -9,7 +9,9 @@
{ {
sane.programs.g4music = { sane.programs.g4music = {
sandbox.method = "bwrap"; sandbox.method = "bwrap";
fs."Music" = {}; sandbox.extraHomePaths = [
"Music"
];
persist.byStore.plaintext = [ persist.byStore.plaintext = [
# index? # index?