Refactor the whole configuration #1

Merged
caem merged 354 commits from refactor into master 2025-02-01 14:05:16 +01:00
Showing only changes of commit 7eeb109c98 - Show all commits

View file

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