packages/nixpak: add ungoogled-chromium
This commit is contained in:
parent
4d7627ba83
commit
5d382da4d0
3 changed files with 37 additions and 0 deletions
7
packages/nixpak/modules/network.nix
Normal file
7
packages/nixpak/modules/network.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
etc.sslCertificates.enable = true;
|
||||||
|
bubblewrap = {
|
||||||
|
bind.ro = [ "/etc/resolv.conf" ];
|
||||||
|
network = true;
|
||||||
|
};
|
||||||
|
}
|
28
packages/nixpak/ungoogled-chromium/default.nix
Normal file
28
packages/nixpak/ungoogled-chromium/default.nix
Normal 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")
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -62,5 +62,7 @@ in
|
||||||
|
|
||||||
steam-metro-skin = import ./data/misc/steam-metro-skin { inherit (pkgs) fetchzip; };
|
steam-metro-skin = import ./data/misc/steam-metro-skin { inherit (pkgs) fetchzip; };
|
||||||
|
|
||||||
|
ungoogled-chromium = sandbox ./nixpak/ungoogled-chromium { };
|
||||||
|
|
||||||
vaults = pkgs.callPackage ./apps/vaults { };
|
vaults = pkgs.callPackage ./apps/vaults { };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue