home-manager: firefox: add initial declarative configuration
All checks were successful
flake / build (push) Successful in 3m22s
All checks were successful
flake / build (push) Successful in 3m22s
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
92ff9a23cf
commit
befdf9fa84
|
@ -8,7 +8,7 @@ let
|
|||
(lib.attrValues config.accounts.email.accounts);
|
||||
in lib.throwIf (account == null) "no primary email address found" account;
|
||||
in {
|
||||
imports = [ ./email.nix ./gtk.nix ./sway.nix ./terminal.nix ];
|
||||
imports = [ ./email.nix ./firefox.nix ./gtk.nix ./sway.nix ./terminal.nix ];
|
||||
|
||||
options.my = {
|
||||
applications.personal.enable =
|
||||
|
@ -91,8 +91,6 @@ in {
|
|||
</fontconfig>
|
||||
'';
|
||||
|
||||
programs.firefox.enable = true;
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitFull;
|
||||
|
|
51
system/home-manager/firefox.nix
Normal file
51
system/home-manager/firefox.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
profiles.c8h4 = {
|
||||
id = 0;
|
||||
isDefault = true;
|
||||
containersForce = true;
|
||||
containers = {
|
||||
personal = {
|
||||
id = 1;
|
||||
icon = "fingerprint";
|
||||
color = "blue";
|
||||
};
|
||||
work = {
|
||||
id = 2;
|
||||
icon = "briefcase";
|
||||
color = "orange";
|
||||
};
|
||||
};
|
||||
search = {
|
||||
default = "DuckDuckGo";
|
||||
privateDefault = "DuckDuckGo";
|
||||
order = [ "DuckDuckGo" ];
|
||||
force = true;
|
||||
engines = {
|
||||
Bing.metaData.hidden = true;
|
||||
Google.metaData.hidden = true;
|
||||
Wikipedia.metaData.alias = "@wp";
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
"browser.bookmarks.showMobileBookmarks" = true;
|
||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||
"browser.tabs.inTitlebar" = 0; # disable titlebar
|
||||
"browser.urlbar.speculativeConnect.enabled" = false;
|
||||
"cookiebanners.service.mode.privateBrowsing" = 1; # reject
|
||||
"devtools.cache.disabled" = true;
|
||||
"dom.private-attribution.submission.enabled" = false;
|
||||
"dom.security.https_only_mode" = true;
|
||||
"network.dns.disablePrefetch" = false;
|
||||
"network.predictor.enabled" = false;
|
||||
"network.prefetch-next" = false;
|
||||
"privacy.donottrackheader.enabled" = true;
|
||||
"privacy.globalprivacycontrol.enabled" = true;
|
||||
"privacy.userContext.enabled" = true;
|
||||
"privacy.userContext.ui.enabled" = true;
|
||||
"services.sync.declinedEngines" = "passwords,creditcards";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue