packages/nixpak: isolate cache directories

This commit is contained in:
Max Headroom 2023-01-07 19:24:33 +01:00
parent 5d382da4d0
commit 9ee476cd2b
3 changed files with 12 additions and 1 deletions

View file

@ -9,7 +9,10 @@ mkNixPak {
flatpak.appId = "io.bassi.Amberol";
bubblewrap = {
bind.rw = [
[
(sloth.mkdir (sloth.concat' sloth.appCacheDir "/amberol"))
(sloth.concat' sloth.xdgCacheHome "/amberol")
]
];
bind.ro = [
(sloth.concat' sloth.homeDir "/Music")

View file

@ -14,6 +14,10 @@ mkNixPak {
"/etc/hosts"
];
bind.rw = [
[
(sloth.mkdir (sloth.concat' sloth.appCacheDir "/fragments"))
(sloth.concat' sloth.xdgCacheHome "/fragments")
]
(sloth.concat' sloth.xdgConfigHome "/fragments")
];
};

View file

@ -17,6 +17,10 @@ mkNixPak {
]))
"/tmp"
]
[
(sloth.mkdir (sloth.concat' sloth.appCacheDir "/chromium"))
(sloth.concat' sloth.xdgCacheHome "/chromium")
]
(sloth.concat [
sloth.xdgConfigHome
"/chromium"