Skip to content

Commit

Permalink
firefox: make extension config override optional
Browse files Browse the repository at this point in the history
  • Loading branch information
HPsaucii committed Feb 1, 2025
1 parent 3243875 commit 06b77de
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/programs/firefox/mkFirefoxModule.nix
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,15 @@ in {
description =
"Json formatted options for the specified extensionID";
};
force = mkOption {
type = types.bool;
default = false;
example = true;
description = ''
Forcibly override any existing configuration for
this extension.
'';
};
};
});
};
Expand Down Expand Up @@ -888,7 +897,7 @@ in {
(name: settingConfig: {
"${profilesPath}/${profile.path}/browser-extension-data/${name}/storage.js" =
{
force = true;
force = settingConfig.force;
text = generators.toJSON { } settingConfig.settings;
};
}) profile.extensions.settings)))));
Expand Down

0 comments on commit 06b77de

Please sign in to comment.