[feat] Restructure the repo

This commit is contained in:
uttarayan21
2024-03-13 23:04:54 +05:30
parent f5bcff9c73
commit 6961bb2733
125 changed files with 0 additions and 5411 deletions

63
common/firefox.nix Normal file
View File

@@ -0,0 +1,63 @@
{ device, pkgs, ... }: {
programs.firefox = {
enable = device.isLinux;
profiles.default = {
userChrome = let
csshacks = pkgs.fetchFromGitHub {
owner = "MrOtherGuy";
repo = "firefox-csshacks";
rev = "master";
sha256 = "sha256-XJ+MTEADzOsCIh0I8EAxbtIpDHfMJsN68sKBy7/1l60=";
};
in ''
@import url(${csshacks}/chrome/toolbars_below_content.css);
@import url(${csshacks}/chrome/scrollable_menupopups.css);
@import url(${csshacks}/chrome/linux_gtk_window_control_patch.css);
'';
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
privacy-badger
bitwarden
tridactyl
];
};
nativeMessagingHosts = [ pkgs.tridactyl-native ];
policies = {
ExtensionSettings = {
"uBlock0@raymondhill.net" = {
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
};
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
FeatureRecommendations = false;
SkipOnboarding = true;
Preferences = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = {
Value = true;
Status = "default";
};
"browser.urlbar.suggest.calculator" = {
Value = true;
Status = "default";
};
"extensions.quarantinedDomains.enabled" = {
Value = false;
Status = "default";
};
};
FirefoxHome = {
"Search" = true;
"TopSites" = false;
"SponsoredTopSites" = false;
"Highlights" = false;
"Pocket" = false;
"SponsoredPocket" = false;
"Snippets" = false;
"Locked" = false;
};
};
};
}