browser: fixup firefox forks
This commit is contained in:
parent
ea385722b0
commit
2b704cc5e7
4 changed files with 226 additions and 179 deletions
|
|
@ -3,9 +3,16 @@
|
|||
config,
|
||||
options,
|
||||
pkgs,
|
||||
stable,
|
||||
...
|
||||
}: {
|
||||
options.mods.browser.firefox = {
|
||||
}: let
|
||||
name = "firefox";
|
||||
in {
|
||||
imports = [
|
||||
(import ./ffextensions.nix
|
||||
{inherit lib stable pkgs name;})
|
||||
];
|
||||
options.mods.browser.${name} = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
|
|
@ -88,7 +95,17 @@
|
|||
config.mods.browser.firefox.profiles;
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
policies = config.mods.browser.firefox.configuration;
|
||||
package =
|
||||
pkgs.wrapFirefox
|
||||
pkgs.firefox-unwrapped
|
||||
{
|
||||
pname = "firefox";
|
||||
extraPolicies =
|
||||
config.mods.browser.firefox.configuration
|
||||
// {
|
||||
ExtensionSettings = builtins.foldl' (acc: ext: acc // ext) {} config.mods.browser.firefox.extensions;
|
||||
};
|
||||
};
|
||||
profiles = builtins.listToAttrs config.mods.browser.firefox.profiles;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue