Refactor the whole configuration #1
1 changed files with 8 additions and 2 deletions
|
@ -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 = cfg: let
|
firefox-esr-wrapped = let
|
||||||
sandboxFirefox = base: let
|
sandboxFirefox = base: let
|
||||||
sandboxed = prev.mkNixPak {
|
sandboxed = prev.mkNixPak {
|
||||||
config = { sloth, ... }: {
|
config = { sloth, ... }: {
|
||||||
|
@ -76,7 +76,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in sandboxed.config.env // {
|
in sandboxed.config.env // {
|
||||||
inherit (prev.firefox-esr) meta;
|
inherit (prev.firefox-esr)
|
||||||
|
meta
|
||||||
|
browserName
|
||||||
|
binaryName
|
||||||
|
version;
|
||||||
|
|
||||||
|
unwrapped = prev.firefox-esr;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
sandboxFirefox prev.firefox-esr;
|
sandboxFirefox prev.firefox-esr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue