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 47d9f76315 - Show all commits

View file

@ -3,7 +3,7 @@
# 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
{ ... }: final: prev: { { ... }: final: prev: {
firefox-esr-wrapped = let firefox-esr-wrapped = cfg: let
sandboxFirefox = base: let sandboxFirefox = base: let
sandboxed = prev.mkNixPak { sandboxed = prev.mkNixPak {
config = { sloth, ... }: { config = { sloth, ... }: {
@ -76,10 +76,7 @@
}; };
}; };
in sandboxed.config.env // { in sandboxed.config.env // {
inherit (base) meta; inherit (prev.firefox-esr) meta;
browserName = "firefox";
binaryName = base.binaryName or "firefox-esr";
unwrapped = base;
}; };
in in
sandboxFirefox prev.firefox-esr; sandboxFirefox prev.firefox-esr;