packages/nixpak: add ungoogled-chromium

This commit is contained in:
Max Headroom 2023-01-07 19:16:37 +01:00
parent 4d7627ba83
commit 5d382da4d0
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,7 @@
{
etc.sslCertificates.enable = true;
bubblewrap = {
bind.ro = [ "/etc/resolv.conf" ];
network = true;
};
}

View file

@ -0,0 +1,28 @@
{ 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")
];
};
};
}

View file

@ -62,5 +62,7 @@ in
steam-metro-skin = import ./data/misc/steam-metro-skin { inherit (pkgs) fetchzip; };
ungoogled-chromium = sandbox ./nixpak/ungoogled-chromium { };
vaults = pkgs.callPackage ./apps/vaults { };
}