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"; flatpak.appId = "io.bassi.Amberol";
bubblewrap = { bubblewrap = {
bind.rw = [ bind.rw = [
[
(sloth.mkdir (sloth.concat' sloth.appCacheDir "/amberol"))
(sloth.concat' sloth.xdgCacheHome "/amberol") (sloth.concat' sloth.xdgCacheHome "/amberol")
]
]; ];
bind.ro = [ bind.ro = [
(sloth.concat' sloth.homeDir "/Music") (sloth.concat' sloth.homeDir "/Music")

View file

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

View file

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