diff options
author | ene <ene@sils.li> | 2023-03-09 20:16:35 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-03-09 20:16:35 +0100 |
commit | e57bb77d13a4e9e0311ebff3a91d5ed4ad09db41 (patch) | |
tree | 2c0f4a58e1fe40b94b4133afe68d589d84753297 /home-manager/config | |
parent | Fix(hm/conf/zsh): Import prompt & cursor in .zshrc (diff) | |
download | nixos-config-e57bb77d13a4e9e0311ebff3a91d5ed4ad09db41.tar.gz nixos-config-e57bb77d13a4e9e0311ebff3a91d5ed4ad09db41.zip |
Fix(hm/conf/firefox): Reorder configs in user.js
Diffstat (limited to 'home-manager/config')
-rw-r--r-- | home-manager/config/firefox/default.nix | 106 |
1 files changed, 54 insertions, 52 deletions
diff --git a/home-manager/config/firefox/default.nix b/home-manager/config/firefox/default.nix index df312a6c..9341e391 100644 --- a/home-manager/config/firefox/default.nix +++ b/home-manager/config/firefox/default.nix @@ -16,7 +16,60 @@ mkdir $out; cat "${user_js}/user.js" > $out/user.js; cat "${user_js_override}" >> $out/user.js; - # TODO look for wehre my configs gets append to, to top or the bottom of the file + + cat << EOF >> $out/user.js; + // Allow my custom css + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + + // might improve performance TODO + "gfx.webrender.all" = true; + + // disable updates (pretty pointless with nix) + "extensions.update.autoUpdateDefault" = false; + "extensions.update.enabled" = false; + "app.update.channel" = "default"; + + "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; + + // TODO what does this do? + "browser.search.widget.inNavBar" = true; + + "browser.shell.checkDefaultBrowser" = false; + "browser.tabs.loadInBackground" = true; + "browser.urlbar.placeholderName" = "Brave"; + + "general.autoScroll" = true; + + // Set the tabs and bookmarks + "browser.tabs.inTitlebar" = 1; + "browser.toolbars.bookmarks.visibility" = "always"; + + // Theme + "extensions.activeThemeID" = "firefox-alpenglow@mozilla.org"; + "extensions.extensions.activeThemeID" = "firefox-alpenglow@mozilla.org"; + + // highlight all entries when searching + "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; + + // 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; + EOF ''; #"${strip_js_comments.app.${system}.default.program}" $out/user.js > $out/user_clean.js; # echo "{" > $out/user.nix.tmp @@ -58,57 +111,6 @@ }; settings = { - # Allow my custom css - "toolkit.legacyUserProfileCustomizations.stylesheets" = true; - - # might improve performance TODO - "gfx.webrender.all" = true; - - # disable updates (pretty pointless with nix) - "extensions.update.autoUpdateDefault" = false; - "extensions.update.enabled" = false; - "app.update.channel" = "default"; - - "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; - - # TODO what does this do? - "browser.search.widget.inNavBar" = true; - - "browser.shell.checkDefaultBrowser" = false; - "browser.tabs.loadInBackground" = true; - "browser.urlbar.placeholderName" = "Brave"; - - "general.autoScroll" = true; - - # Set the tabs and bookmarks - "browser.tabs.inTitlebar" = 1; - "browser.toolbars.bookmarks.visibility" = "always"; - - # Theme - "extensions.activeThemeID" = "firefox-alpenglow@mozilla.org"; - "extensions.extensions.activeThemeID" = "firefox-alpenglow@mozilla.org"; - - # highlight all entries when searching - "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; - - # 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; }; in { home.packages = [ |