This commit is contained in:
caem 2025-01-25 01:29:59 +01:00
parent 11b59ba358
commit 7eeb109c98
Signed by: caem
GPG key ID: 69A830D03203405F

View file

@ -3,11 +3,11 @@
# https://github.com/schizofox/schizofox/blob/cdf69b2a445ff12680657a3bd44ce7c406bf2ae6/flake/modules/home-manager/default.nix
{ lib, ... }: final: prev: {
firefox-esr-sandboxed= let
firefox-esr = let
sandboxed-firefox-esr = prev.mkNixPak {
config = { sloth, ... }: {
app.package = prev.firefox-esr-unwrapped;
app.binPath = "bin/firefox-esr-sandboxed";
app.binPath = "bin/firefox-esr";
flatpak.appId = "org.mozilla.firefox";
dbus.policies = {
@ -58,7 +58,7 @@
"/sys/bus/pci"
"/etc/resolv.conf"
"/etc/localtime"
["${prev.firefox-esr-unwrapped}/lib/firefox" "/app/etc/firefox"]
["${prev.firefox-esr}/lib/firefox" "/app/etc/firefox"]
(sloth.concat' sloth.xdgConfigHome "/dconf")
(sloth.concat' sloth.xdgConfigHome "/gtk-2.0")
(sloth.concat' sloth.xdgConfigHome "/gtk-3.0")
@ -77,21 +77,6 @@
in
prev.wrapFirefox (sandboxed-firefox-esr.config.env // {
gtk3 = prev.gtk3;
inherit (prev.firefox-esr)
version
meta
langPath
updateScript
pkgconfig
buildPackages
patches
extraPatches
extraPrefs
extraPolicies
nativeMessagingHosts
cfg;
}) {
applicationName = "firefox-esr-sandboxed";
desktopName = "Firefox ESR (Sandboxed)";
};
inherit (prev.firefox-esr) pname meta tests;
});
}