29 lines
603 B
Nix
29 lines
603 B
Nix
|
{ 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"
|
||
|
]
|
||
|
(sloth.concat [
|
||
|
sloth.xdgConfigHome
|
||
|
"/chromium"
|
||
|
])
|
||
|
(sloth.concat' sloth.homeDir "/Downloads")
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|