2023-01-07 20:16:37 +02:00
|
|
|
{ mkNixPak, ungoogled-chromium }:
|
|
|
|
|
|
|
|
mkNixPak {
|
|
|
|
config = { config, sloth, ... }: {
|
|
|
|
app.package = ungoogled-chromium;
|
|
|
|
flatpak.appId = "org.chromium.Chromium";
|
|
|
|
imports = [
|
|
|
|
../modules/gui-base.nix
|
|
|
|
../modules/network.nix
|
|
|
|
];
|
|
|
|
bubblewrap = {
|
|
|
|
bind.rw = [
|
|
|
|
[
|
|
|
|
(sloth.mkdir (sloth.concat [
|
|
|
|
sloth.appCacheDir
|
|
|
|
"/nixpak-app-shared-tmp"
|
|
|
|
]))
|
|
|
|
"/tmp"
|
|
|
|
]
|
2023-01-07 20:24:33 +02:00
|
|
|
[
|
|
|
|
(sloth.mkdir (sloth.concat' sloth.appCacheDir "/chromium"))
|
|
|
|
(sloth.concat' sloth.xdgCacheHome "/chromium")
|
|
|
|
]
|
2023-01-07 20:16:37 +02:00
|
|
|
(sloth.concat [
|
|
|
|
sloth.xdgConfigHome
|
|
|
|
"/chromium"
|
|
|
|
])
|
|
|
|
(sloth.concat' sloth.homeDir "/Downloads")
|
2023-01-07 20:29:18 +02:00
|
|
|
"/tmp/.X11-unix"
|
|
|
|
(sloth.envOr "XAUTHORITY" "/no-xauth")
|
2023-01-07 20:16:37 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|