diff options
Diffstat (limited to '')
-rw-r--r-- | home-manager/config/firefox/default.nix | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/home-manager/config/firefox/default.nix b/home-manager/config/firefox/default.nix index 9341e391..c9c53a29 100644 --- a/home-manager/config/firefox/default.nix +++ b/home-manager/config/firefox/default.nix @@ -19,56 +19,56 @@ cat << EOF >> $out/user.js; // Allow my custom css - "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); // might improve performance TODO - "gfx.webrender.all" = true; + user_pref("gfx.webrender.all", true); // disable updates (pretty pointless with nix) - "extensions.update.autoUpdateDefault" = false; - "extensions.update.enabled" = false; - "app.update.channel" = "default"; + user_pref("extensions.update.autoUpdateDefault", false); + user_pref("extensions.update.enabled", false); + user_pref("app.update.channel", "default"); - "browser.ctrlTab.recentlyUsedOrder" = false; + user_pref("browser.ctrlTab.recentlyUsedOrder", false); - "browser.download.useDownloadDir" = true; - "browser.download.dir" = "${config.home.homeDirectory}/media/downloads"; - "browser.download.folderList" = 2; # TODO - "browser.download.viewableInternally.typeWasRegistered.svg" = true; - "browser.download.viewableInternally.typeWasRegistered.webp" = true; - "browser.download.viewableInternally.typeWasRegistered.xml" = true; + user_pref("browser.download.useDownloadDir", true); + user_pref("browser.download.dir", "${config.home.homeDirectory}/media/downloads"); + user_pref("browser.download.folderList", 2); # TODO + user_pref("browser.download.viewableInternally.typeWasRegistered.svg", true); + user_pref("browser.download.viewableInternally.typeWasRegistered.webp", true); + user_pref("browser.download.viewableInternally.typeWasRegistered.xml", true); // TODO what does this do? - "browser.search.widget.inNavBar" = true; + user_pref("browser.search.widget.inNavBar", true); - "browser.shell.checkDefaultBrowser" = false; - "browser.tabs.loadInBackground" = true; - "browser.urlbar.placeholderName" = "Brave"; + user_pref("browser.shell.checkDefaultBrowser", false); + user_pref("browser.tabs.loadInBackground", true); + user_pref("browser.urlbar.placeholderName", "Brave"); - "general.autoScroll" = true; + user_pref("general.autoScroll", true); // Set the tabs and bookmarks - "browser.tabs.inTitlebar" = 1; - "browser.toolbars.bookmarks.visibility" = "always"; + user_pref("browser.tabs.inTitlebar", 1); + user_pref("browser.toolbars.bookmarks.visibility", "always"); // Theme - "extensions.activeThemeID" = "firefox-alpenglow@mozilla.org"; - "extensions.extensions.activeThemeID" = "firefox-alpenglow@mozilla.org"; + user_pref("extensions.activeThemeID", "firefox-alpenglow@mozilla.org"); + user_pref("extensions.extensions.activeThemeID", "firefox-alpenglow@mozilla.org"); // highlight all entries when searching - "findbar.highlightAll" = true; + user_pref("findbar.highlightAll", true); // TODO - //"extensions.webcompat.enable_picture_in_picture_overrides" = true; - //"extensions.webcompat.enable_shims" = true; - //"extensions.webcompat.perform_injections" = true; - //"extensions.webcompat.perform_ua_overrides" = true; + //user_pref("extensions.webcompat.enable_picture_in_picture_overrides", true); + //user_pref("extensions.webcompat.enable_shims", true); + //user_pref("extensions.webcompat.perform_injections", true); + //user_pref("extensions.webcompat.perform_ua_overrides", true); // onlykey / copied from a yubikey config - //"security.webauth.u2f" = true; - //"security.webauth.webauthn" = true; - //"security.webauth.webauthn_enable_softtoken" = true; - //"security.webauth.webauthn_enable_usbtoken" = true; + //user_pref("security.webauth.u2f", true); + //user_pref("security.webauth.webauthn", true); + //user_pref("security.webauth.webauthn_enable_softtoken", true); + //user_pref("security.webauth.webauthn_enable_usbtoken", true); EOF ''; #"${strip_js_comments.app.${system}.default.program}" $out/user.js > $out/user_clean.js; |