Refactor the whole configuration #1
1 changed files with 67 additions and 60 deletions
|
@ -3,10 +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
|
||||||
|
|
||||||
{ ... }: final: prev: {
|
{ ... }: final: prev: {
|
||||||
firefox-esr = let
|
firefox-esr-wrapped = let
|
||||||
sandboxed-firefox-esr = prev.mkNixPak {
|
sandboxFirefox = base: let
|
||||||
|
sandboxed = prev.mkNixPak {
|
||||||
config = { sloth, ... }: {
|
config = { sloth, ... }: {
|
||||||
app.package = prev.firefox-esr;
|
app.package = base;
|
||||||
app.binPath = "bin/firefox-esr";
|
app.binPath = "bin/firefox-esr";
|
||||||
flatpak.appId = "org.mozilla.firefox";
|
flatpak.appId = "org.mozilla.firefox";
|
||||||
|
|
||||||
|
@ -74,6 +75,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
in sandboxed.config.env // {
|
||||||
|
inherit (base) meta;
|
||||||
|
browserName = "firefox";
|
||||||
|
binaryName = base.binaryName or "firefox-esr";
|
||||||
|
unwrapped = base;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
sandboxed-firefox-esr.config.env;
|
sandboxFirefox prev.firefox-esr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue