forked from irl/nix-configs
feat: refactor home-manager configs
This commit is contained in:
parent
442c9051ba
commit
fca82b60ce
13 changed files with 355 additions and 150 deletions
47
modules/home-manager/firefox/firefox.nix
Normal file
47
modules/home-manager/firefox/firefox.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.feature.firefox;
|
||||
in
|
||||
{
|
||||
options.feature.firefox = {
|
||||
enable = lib.mkEnableOption "Set up firefox";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
|
||||
# Firefox is expected to be installed as a system package
|
||||
package = null;
|
||||
|
||||
profiles.irl = {
|
||||
extensions = {
|
||||
force = true;
|
||||
packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
bitwarden
|
||||
kagi-search
|
||||
privacy-badger
|
||||
recap
|
||||
];
|
||||
};
|
||||
settings = {
|
||||
"browser.newtabpage.activity-stream.discoverystream.sendToPocket.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||
"browser.newtabpage.activity-stream.showSponsoredCheckboxes" = false;
|
||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||
"browser.search.suggest.enabled.private" = false;
|
||||
"datareporting.policy.firstRunURL" = "https://irl.xyz/";
|
||||
"extensions.autoDisableScope" = 0;
|
||||
"extensions.pocket.enabled" = false;
|
||||
"identity.fxaccounts.enabled" = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue